diff options
Diffstat (limited to 'pylint/reporters/ureports/html_writer.py')
-rw-r--r-- | pylint/reporters/ureports/html_writer.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pylint/reporters/ureports/html_writer.py b/pylint/reporters/ureports/html_writer.py index c5f74d3..b3db270 100644 --- a/pylint/reporters/ureports/html_writer.py +++ b/pylint/reporters/ureports/html_writer.py @@ -61,16 +61,12 @@ class HTMLWriter(BaseWriter): for i, row in enumerate(table_content): if i == 0 and layout.rheaders: self.writeln(u'<tr class="header">') - elif i+1 == len(table_content) and layout.rrheaders: - self.writeln(u'<tr class="header">') else: self.writeln(u'<tr class="%s">' % (u'even' if i % 2 else u'odd')) for j, cell in enumerate(row): cell = cell or u' ' if (layout.rheaders and i == 0) or \ - (layout.cheaders and j == 0) or \ - (layout.rrheaders and i+1 == len(table_content)) or \ - (layout.rcheaders and j+1 == len(row)): + (layout.cheaders and j == 0): self.writeln(u'<th>%s</th>' % cell) else: self.writeln(u'<td>%s</td>' % cell) |