You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def to_html(self, include_children=False, recurse=False):
"""
Returns html for a <th> with html from all the cells in the row as <td>
"""
html_str = "<th>"
for cell in self.cells:
html_str = html_str + cell.to_html()
html_str = html_str + "</th>"
return html_str
For this reason, this function should instead returns html for a with html from all the cells in the row as .
This means this to_html must be changed from to and the class TableCell to_html method most likely needs to be changed aswell to make sure for header rows the encompassing tags are instead of .
The text was updated successfully, but these errors were encountered:
The current code is as follows:
The proper format for html tables is shown here: w3 school html tables
For this reason, this function should instead returns html for a with html from all the cells in the row as .
This means this to_html must be changed from to and the class TableCell to_html method most likely needs to be changed aswell to make sure for header rows the encompassing tags are instead of .
The text was updated successfully, but these errors were encountered: