diff mercurial/minirst.py @ 18751:13aa81e2fded

minirst: HTML formatter tweaks output table rows on distinct lines don't make the first row a table header
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sat, 09 Feb 2013 21:51:21 +0000
parents c9d923f5d8ae
children fabbaa250977
line wrap: on
line diff
--- a/mercurial/minirst.py	Sat Feb 09 17:44:25 2013 -0500
+++ b/mercurial/minirst.py	Sat Feb 09 21:51:21 2013 +0000
@@ -564,7 +564,7 @@
                 l = []
                 for v in row:
                     l.append('<td>%s</td>' % escape(v))
-                t.append(' <tr>%s</tr>\n' % ''.join(l))
+                t.append('<tr>%s</tr>\n' % '\n'.join(l))
             out.append('<table>\n%s</table>\n' % ''.join(t))
         elif btype == 'definition':
             openlist('dl', level)