Mercurial > public > mercurial-scm > hg-stable
diff mercurial/minirst.py @ 18749:8aa053b99c24
minirst: don't generate TH elements for the first row in table
We mainly use them for option tables -- browsers bolding and centering
them looks wrong.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Sat, 09 Feb 2013 21:51:21 +0000 |
parents | 6e676fb6ea44 |
children | c9d923f5d8ae |
line wrap: on
line diff
--- a/mercurial/minirst.py Sun Feb 10 12:58:57 2013 +0100 +++ b/mercurial/minirst.py Sat Feb 09 21:51:21 2013 +0000 @@ -558,10 +558,7 @@ for row in table: l = [] for v in zip(row): - if not t: - l.append('<th>%s</th>' % v) - else: - l.append('<td>%s</td>' % v) + l.append('<td>%s</td>' % v) t.append(' <tr>%s</tr>\n' % ''.join(l)) out.append('<table>\n%s</table>\n' % ''.join(t)) elif btype == 'definition':