##// END OF EJS Templates
minirst: don't generate TH elements for the first row in table...
Dan Villiom Podlaski Christiansen -
r18749:8aa053b9 default
parent child Browse files
Show More
@@ -558,9 +558,6 b' def formathtml(blocks):'
558 for row in table:
558 for row in table:
559 l = []
559 l = []
560 for v in zip(row):
560 for v in zip(row):
561 if not t:
562 l.append('<th>%s</th>' % v)
563 else:
564 l.append('<td>%s</td>' % v)
561 l.append('<td>%s</td>' % v)
565 t.append(' <tr>%s</tr>\n' % ''.join(l))
562 t.append(' <tr>%s</tr>\n' % ''.join(l))
566 out.append('<table>\n%s</table>\n' % ''.join(t))
563 out.append('<table>\n%s</table>\n' % ''.join(t))
@@ -1531,7 +1531,7 b' Dish up an empty repo; serve it cold.'
1531 options:
1531 options:
1532 </p>
1532 </p>
1533 <table>
1533 <table>
1534 <tr><th>-I</th><th>--include PATTERN [+]</th><th>include names matching the given patterns</th></tr>
1534 <tr><td>-I</td><td>--include PATTERN [+]</td><td>include names matching the given patterns</td></tr>
1535 <tr><td>-X</td><td>--exclude PATTERN [+]</td><td>exclude names matching the given patterns</td></tr>
1535 <tr><td>-X</td><td>--exclude PATTERN [+]</td><td>exclude names matching the given patterns</td></tr>
1536 <tr><td>-S</td><td>--subrepos</td><td>recurse into subrepositories</td></tr>
1536 <tr><td>-S</td><td>--subrepos</td><td>recurse into subrepositories</td></tr>
1537 <tr><td>-n</td><td>--dry-run</td><td>do not perform actions, just print output</td></tr>
1537 <tr><td>-n</td><td>--dry-run</td><td>do not perform actions, just print output</td></tr>
@@ -1543,7 +1543,7 b' Dish up an empty repo; serve it cold.'
1543 global options:
1543 global options:
1544 </p>
1544 </p>
1545 <table>
1545 <table>
1546 <tr><th>-R</th><th>--repository REPO</th><th>repository root directory or name of overlay bundle file</th></tr>
1546 <tr><td>-R</td><td>--repository REPO</td><td>repository root directory or name of overlay bundle file</td></tr>
1547 <tr><td></td><td>--cwd DIR</td><td>change working directory</td></tr>
1547 <tr><td></td><td>--cwd DIR</td><td>change working directory</td></tr>
1548 <tr><td>-y</td><td>--noninteractive</td><td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1548 <tr><td>-y</td><td>--noninteractive</td><td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1549 <tr><td>-q</td><td>--quiet</td><td>suppress output</td></tr>
1549 <tr><td>-q</td><td>--quiet</td><td>suppress output</td></tr>
@@ -1643,7 +1643,7 b' Dish up an empty repo; serve it cold.'
1643 options:
1643 options:
1644 </p>
1644 </p>
1645 <table>
1645 <table>
1646 <tr><th>-A</th><th>--after</th><th>record delete for missing files</th></tr>
1646 <tr><td>-A</td><td>--after</td><td>record delete for missing files</td></tr>
1647 <tr><td>-f</td><td>--force</td><td>remove (and delete) file even if added or modified</td></tr>
1647 <tr><td>-f</td><td>--force</td><td>remove (and delete) file even if added or modified</td></tr>
1648 <tr><td>-I</td><td>--include PATTERN [+]</td><td>include names matching the given patterns</td></tr>
1648 <tr><td>-I</td><td>--include PATTERN [+]</td><td>include names matching the given patterns</td></tr>
1649 <tr><td>-X</td><td>--exclude PATTERN [+]</td><td>exclude names matching the given patterns</td></tr>
1649 <tr><td>-X</td><td>--exclude PATTERN [+]</td><td>exclude names matching the given patterns</td></tr>
@@ -1655,7 +1655,7 b' Dish up an empty repo; serve it cold.'
1655 global options:
1655 global options:
1656 </p>
1656 </p>
1657 <table>
1657 <table>
1658 <tr><th>-R</th><th>--repository REPO</th><th>repository root directory or name of overlay bundle file</th></tr>
1658 <tr><td>-R</td><td>--repository REPO</td><td>repository root directory or name of overlay bundle file</td></tr>
1659 <tr><td></td><td>--cwd DIR</td><td>change working directory</td></tr>
1659 <tr><td></td><td>--cwd DIR</td><td>change working directory</td></tr>
1660 <tr><td>-y</td><td>--noninteractive</td><td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1660 <tr><td>-y</td><td>--noninteractive</td><td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1661 <tr><td>-q</td><td>--quiet</td><td>suppress output</td></tr>
1661 <tr><td>-q</td><td>--quiet</td><td>suppress output</td></tr>
@@ -758,7 +758,7 b' 30 column format:'
758 html format:
758 html format:
759 ----------------------------------------------------------------------
759 ----------------------------------------------------------------------
760 <table>
760 <table>
761 <tr><th>a</th><th>b</th><th>c</th></tr>
761 <tr><td>a</td><td>b</td><td>c</td></tr>
762 <tr><td>1</td><td>2</td><td>3</td></tr>
762 <tr><td>1</td><td>2</td><td>3</td></tr>
763 <tr><td>foo</td><td>bar</td><td>baz this list is very very very long man</td></tr>
763 <tr><td>foo</td><td>bar</td><td>baz this list is very very very long man</td></tr>
764 </table>
764 </table>
General Comments 0
You need to be logged in to leave comments. Login now