Skip to content

Commit

Permalink
Merge pull request #332 from dontcallmedom/thead
Browse files Browse the repository at this point in the history
Use <thead> for table headers
  • Loading branch information
garykac committed Jul 1, 2022
2 parents 6e9966a + f5ccfdd commit ea59287
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build.py
Expand Up @@ -52,7 +52,10 @@ def table_row(self):

if len(self.table_row_data) == 0:
return ''
row = '<tr>'
if self.is_header_row:
row = '<thead><tr>'
else:
row = '<tr>'
for i in range(0, len(self.table_row_data)):
data = self.table_row_data[i]
colname = self.table_header_data[i]
Expand All @@ -77,7 +80,10 @@ def table_row(self):
if colname == 'DOM Interface':
data = '{{' + data + '}}'
row += pre + self.process_text(data) + post
row += '</tr>\n'
if self.is_header_row:
row += '</tr></thead>\n'
else:
row += '</tr>\n'
return row

def process_text(self, desc):
Expand Down

0 comments on commit ea59287

Please sign in to comment.