##// END OF EJS Templates
minirst: HTML formatter tweaks...
Dan Villiom Podlaski Christiansen -
r18751:13aa81e2 default
parent child Browse files
Show More
@@ -564,7 +564,7 b' def formathtml(blocks):'
564 l = []
564 l = []
565 for v in row:
565 for v in row:
566 l.append('<td>%s</td>' % escape(v))
566 l.append('<td>%s</td>' % escape(v))
567 t.append(' <tr>%s</tr>\n' % ''.join(l))
567 t.append('<tr>%s</tr>\n' % '\n'.join(l))
568 out.append('<table>\n%s</table>\n' % ''.join(t))
568 out.append('<table>\n%s</table>\n' % ''.join(t))
569 elif btype == 'definition':
569 elif btype == 'definition':
570 openlist('dl', level)
570 openlist('dl', level)
@@ -1531,10 +1531,18 b' Dish up an empty repo; serve it cold.'
1531 options:
1531 options:
1532 </p>
1532 </p>
1533 <table>
1533 <table>
1534 <tr><td>-I</td><td>--include PATTERN [+]</td><td>include names matching the given patterns</td></tr>
1534 <tr><td>-I</td>
1535 <tr><td>-X</td><td>--exclude PATTERN [+]</td><td>exclude names matching the given patterns</td></tr>
1535 <td>--include PATTERN [+]</td>
1536 <tr><td>-S</td><td>--subrepos</td><td>recurse into subrepositories</td></tr>
1536 <td>include names matching the given patterns</td></tr>
1537 <tr><td>-n</td><td>--dry-run</td><td>do not perform actions, just print output</td></tr>
1537 <tr><td>-X</td>
1538 <td>--exclude PATTERN [+]</td>
1539 <td>exclude names matching the given patterns</td></tr>
1540 <tr><td>-S</td>
1541 <td>--subrepos</td>
1542 <td>recurse into subrepositories</td></tr>
1543 <tr><td>-n</td>
1544 <td>--dry-run</td>
1545 <td>do not perform actions, just print output</td></tr>
1538 </table>
1546 </table>
1539 <p>
1547 <p>
1540 [+] marked option can be specified multiple times
1548 [+] marked option can be specified multiple times
@@ -1543,22 +1551,54 b' Dish up an empty repo; serve it cold.'
1543 global options:
1551 global options:
1544 </p>
1552 </p>
1545 <table>
1553 <table>
1546 <tr><td>-R</td><td>--repository REPO</td><td>repository root directory or name of overlay bundle file</td></tr>
1554 <tr><td>-R</td>
1547 <tr><td></td><td>--cwd DIR</td><td>change working directory</td></tr>
1555 <td>--repository REPO</td>
1548 <tr><td>-y</td><td>--noninteractive</td><td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1556 <td>repository root directory or name of overlay bundle file</td></tr>
1549 <tr><td>-q</td><td>--quiet</td><td>suppress output</td></tr>
1557 <tr><td></td>
1550 <tr><td>-v</td><td>--verbose</td><td>enable additional output</td></tr>
1558 <td>--cwd DIR</td>
1551 <tr><td></td><td>--config CONFIG [+]</td><td>set/override config option (use 'section.name=value')</td></tr>
1559 <td>change working directory</td></tr>
1552 <tr><td></td><td>--debug</td><td>enable debugging output</td></tr>
1560 <tr><td>-y</td>
1553 <tr><td></td><td>--debugger</td><td>start debugger</td></tr>
1561 <td>--noninteractive</td>
1554 <tr><td></td><td>--encoding ENCODE</td><td>set the charset encoding (default: ascii)</td></tr>
1562 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1555 <tr><td></td><td>--encodingmode MODE</td><td>set the charset encoding mode (default: strict)</td></tr>
1563 <tr><td>-q</td>
1556 <tr><td></td><td>--traceback</td><td>always print a traceback on exception</td></tr>
1564 <td>--quiet</td>
1557 <tr><td></td><td>--time</td><td>time how long the command takes</td></tr>
1565 <td>suppress output</td></tr>
1558 <tr><td></td><td>--profile</td><td>print command execution profile</td></tr>
1566 <tr><td>-v</td>
1559 <tr><td></td><td>--version</td><td>output version information and exit</td></tr>
1567 <td>--verbose</td>
1560 <tr><td>-h</td><td>--help</td><td>display help and exit</td></tr>
1568 <td>enable additional output</td></tr>
1561 <tr><td></td><td>--hidden</td><td>consider hidden changesets</td></tr>
1569 <tr><td></td>
1570 <td>--config CONFIG [+]</td>
1571 <td>set/override config option (use 'section.name=value')</td></tr>
1572 <tr><td></td>
1573 <td>--debug</td>
1574 <td>enable debugging output</td></tr>
1575 <tr><td></td>
1576 <td>--debugger</td>
1577 <td>start debugger</td></tr>
1578 <tr><td></td>
1579 <td>--encoding ENCODE</td>
1580 <td>set the charset encoding (default: ascii)</td></tr>
1581 <tr><td></td>
1582 <td>--encodingmode MODE</td>
1583 <td>set the charset encoding mode (default: strict)</td></tr>
1584 <tr><td></td>
1585 <td>--traceback</td>
1586 <td>always print a traceback on exception</td></tr>
1587 <tr><td></td>
1588 <td>--time</td>
1589 <td>time how long the command takes</td></tr>
1590 <tr><td></td>
1591 <td>--profile</td>
1592 <td>print command execution profile</td></tr>
1593 <tr><td></td>
1594 <td>--version</td>
1595 <td>output version information and exit</td></tr>
1596 <tr><td>-h</td>
1597 <td>--help</td>
1598 <td>display help and exit</td></tr>
1599 <tr><td></td>
1600 <td>--hidden</td>
1601 <td>consider hidden changesets</td></tr>
1562 </table>
1602 </table>
1563 <p>
1603 <p>
1564 [+] marked option can be specified multiple times
1604 [+] marked option can be specified multiple times
@@ -1643,10 +1683,18 b' Dish up an empty repo; serve it cold.'
1643 options:
1683 options:
1644 </p>
1684 </p>
1645 <table>
1685 <table>
1646 <tr><td>-A</td><td>--after</td><td>record delete for missing files</td></tr>
1686 <tr><td>-A</td>
1647 <tr><td>-f</td><td>--force</td><td>remove (and delete) file even if added or modified</td></tr>
1687 <td>--after</td>
1648 <tr><td>-I</td><td>--include PATTERN [+]</td><td>include names matching the given patterns</td></tr>
1688 <td>record delete for missing files</td></tr>
1649 <tr><td>-X</td><td>--exclude PATTERN [+]</td><td>exclude names matching the given patterns</td></tr>
1689 <tr><td>-f</td>
1690 <td>--force</td>
1691 <td>remove (and delete) file even if added or modified</td></tr>
1692 <tr><td>-I</td>
1693 <td>--include PATTERN [+]</td>
1694 <td>include names matching the given patterns</td></tr>
1695 <tr><td>-X</td>
1696 <td>--exclude PATTERN [+]</td>
1697 <td>exclude names matching the given patterns</td></tr>
1650 </table>
1698 </table>
1651 <p>
1699 <p>
1652 [+] marked option can be specified multiple times
1700 [+] marked option can be specified multiple times
@@ -1655,22 +1703,54 b' Dish up an empty repo; serve it cold.'
1655 global options:
1703 global options:
1656 </p>
1704 </p>
1657 <table>
1705 <table>
1658 <tr><td>-R</td><td>--repository REPO</td><td>repository root directory or name of overlay bundle file</td></tr>
1706 <tr><td>-R</td>
1659 <tr><td></td><td>--cwd DIR</td><td>change working directory</td></tr>
1707 <td>--repository REPO</td>
1660 <tr><td>-y</td><td>--noninteractive</td><td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1708 <td>repository root directory or name of overlay bundle file</td></tr>
1661 <tr><td>-q</td><td>--quiet</td><td>suppress output</td></tr>
1709 <tr><td></td>
1662 <tr><td>-v</td><td>--verbose</td><td>enable additional output</td></tr>
1710 <td>--cwd DIR</td>
1663 <tr><td></td><td>--config CONFIG [+]</td><td>set/override config option (use 'section.name=value')</td></tr>
1711 <td>change working directory</td></tr>
1664 <tr><td></td><td>--debug</td><td>enable debugging output</td></tr>
1712 <tr><td>-y</td>
1665 <tr><td></td><td>--debugger</td><td>start debugger</td></tr>
1713 <td>--noninteractive</td>
1666 <tr><td></td><td>--encoding ENCODE</td><td>set the charset encoding (default: ascii)</td></tr>
1714 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
1667 <tr><td></td><td>--encodingmode MODE</td><td>set the charset encoding mode (default: strict)</td></tr>
1715 <tr><td>-q</td>
1668 <tr><td></td><td>--traceback</td><td>always print a traceback on exception</td></tr>
1716 <td>--quiet</td>
1669 <tr><td></td><td>--time</td><td>time how long the command takes</td></tr>
1717 <td>suppress output</td></tr>
1670 <tr><td></td><td>--profile</td><td>print command execution profile</td></tr>
1718 <tr><td>-v</td>
1671 <tr><td></td><td>--version</td><td>output version information and exit</td></tr>
1719 <td>--verbose</td>
1672 <tr><td>-h</td><td>--help</td><td>display help and exit</td></tr>
1720 <td>enable additional output</td></tr>
1673 <tr><td></td><td>--hidden</td><td>consider hidden changesets</td></tr>
1721 <tr><td></td>
1722 <td>--config CONFIG [+]</td>
1723 <td>set/override config option (use 'section.name=value')</td></tr>
1724 <tr><td></td>
1725 <td>--debug</td>
1726 <td>enable debugging output</td></tr>
1727 <tr><td></td>
1728 <td>--debugger</td>
1729 <td>start debugger</td></tr>
1730 <tr><td></td>
1731 <td>--encoding ENCODE</td>
1732 <td>set the charset encoding (default: ascii)</td></tr>
1733 <tr><td></td>
1734 <td>--encodingmode MODE</td>
1735 <td>set the charset encoding mode (default: strict)</td></tr>
1736 <tr><td></td>
1737 <td>--traceback</td>
1738 <td>always print a traceback on exception</td></tr>
1739 <tr><td></td>
1740 <td>--time</td>
1741 <td>time how long the command takes</td></tr>
1742 <tr><td></td>
1743 <td>--profile</td>
1744 <td>print command execution profile</td></tr>
1745 <tr><td></td>
1746 <td>--version</td>
1747 <td>output version information and exit</td></tr>
1748 <tr><td>-h</td>
1749 <td>--help</td>
1750 <td>display help and exit</td></tr>
1751 <tr><td></td>
1752 <td>--hidden</td>
1753 <td>consider hidden changesets</td></tr>
1674 </table>
1754 </table>
1675 <p>
1755 <p>
1676 [+] marked option can be specified multiple times
1756 [+] marked option can be specified multiple times
@@ -758,9 +758,15 b' 30 column format:'
758 html format:
758 html format:
759 ----------------------------------------------------------------------
759 ----------------------------------------------------------------------
760 <table>
760 <table>
761 <tr><td>a</td><td>b</td><td>c</td></tr>
761 <tr><td>a</td>
762 <tr><td>1</td><td>2</td><td>3</td></tr>
762 <td>b</td>
763 <tr><td>foo</td><td>bar</td><td>baz this list is very very very long man</td></tr>
763 <td>c</td></tr>
764 <tr><td>1</td>
765 <td>2</td>
766 <td>3</td></tr>
767 <tr><td>foo</td>
768 <td>bar</td>
769 <td>baz this list is very very very long man</td></tr>
764 </table>
770 </table>
765 ----------------------------------------------------------------------
771 ----------------------------------------------------------------------
766
772
General Comments 0
You need to be logged in to leave comments. Login now