# HG changeset patch
# User Dan Villiom Podlaski Christiansen
# Date 1360446681 0
# Node ID 13aa81e2fded35389403d2ae3a750e5af6c65dab
# Parent c9d923f5d8aebe2f5f297be9dab27f2f307b086b
minirst: HTML formatter tweaks
output table rows on distinct lines
don't make the first row a table header
diff -r c9d923f5d8ae -r 13aa81e2fded mercurial/minirst.py
--- 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('%s | ' % escape(v))
- t.append(' %s
\n' % ''.join(l))
+ t.append('%s
\n' % '\n'.join(l))
out.append('\n' % ''.join(t))
elif btype == 'definition':
openlist('dl', level)
diff -r c9d923f5d8ae -r 13aa81e2fded tests/test-help.t
--- a/tests/test-help.t Sat Feb 09 17:44:25 2013 -0500
+++ b/tests/test-help.t Sat Feb 09 21:51:21 2013 +0000
@@ -1531,10 +1531,18 @@
options:
- -I | --include PATTERN [+] | include names matching the given patterns |
- -X | --exclude PATTERN [+] | exclude names matching the given patterns |
- -S | --subrepos | recurse into subrepositories |
- -n | --dry-run | do not perform actions, just print output |
+ -I |
+ --include PATTERN [+] |
+ include names matching the given patterns |
+ -X |
+ --exclude PATTERN [+] |
+ exclude names matching the given patterns |
+ -S |
+ --subrepos |
+ recurse into subrepositories |
+ -n |
+ --dry-run |
+ do not perform actions, just print output |
[+] marked option can be specified multiple times
@@ -1543,22 +1551,54 @@
global options:
- -R | --repository REPO | repository root directory or name of overlay bundle file |
- | --cwd DIR | change working directory |
- -y | --noninteractive | do not prompt, automatically pick the first choice for all prompts |
- -q | --quiet | suppress output |
- -v | --verbose | enable additional output |
- | --config CONFIG [+] | set/override config option (use 'section.name=value') |
- | --debug | enable debugging output |
- | --debugger | start debugger |
- | --encoding ENCODE | set the charset encoding (default: ascii) |
- | --encodingmode MODE | set the charset encoding mode (default: strict) |
- | --traceback | always print a traceback on exception |
- | --time | time how long the command takes |
- | --profile | print command execution profile |
- | --version | output version information and exit |
- -h | --help | display help and exit |
- | --hidden | consider hidden changesets |
+ -R |
+ --repository REPO |
+ repository root directory or name of overlay bundle file |
+ |
+ --cwd DIR |
+ change working directory |
+ -y |
+ --noninteractive |
+ do not prompt, automatically pick the first choice for all prompts |
+ -q |
+ --quiet |
+ suppress output |
+ -v |
+ --verbose |
+ enable additional output |
+ |
+ --config CONFIG [+] |
+ set/override config option (use 'section.name=value') |
+ |
+ --debug |
+ enable debugging output |
+ |
+ --debugger |
+ start debugger |
+ |
+ --encoding ENCODE |
+ set the charset encoding (default: ascii) |
+ |
+ --encodingmode MODE |
+ set the charset encoding mode (default: strict) |
+ |
+ --traceback |
+ always print a traceback on exception |
+ |
+ --time |
+ time how long the command takes |
+ |
+ --profile |
+ print command execution profile |
+ |
+ --version |
+ output version information and exit |
+ -h |
+ --help |
+ display help and exit |
+ |
+ --hidden |
+ consider hidden changesets |
[+] marked option can be specified multiple times
@@ -1643,10 +1683,18 @@
options:
- -A | --after | record delete for missing files |
- -f | --force | remove (and delete) file even if added or modified |
- -I | --include PATTERN [+] | include names matching the given patterns |
- -X | --exclude PATTERN [+] | exclude names matching the given patterns |
+ -A |
+ --after |
+ record delete for missing files |
+ -f |
+ --force |
+ remove (and delete) file even if added or modified |
+ -I |
+ --include PATTERN [+] |
+ include names matching the given patterns |
+ -X |
+ --exclude PATTERN [+] |
+ exclude names matching the given patterns |
[+] marked option can be specified multiple times
@@ -1655,22 +1703,54 @@
global options:
- -R | --repository REPO | repository root directory or name of overlay bundle file |
- | --cwd DIR | change working directory |
- -y | --noninteractive | do not prompt, automatically pick the first choice for all prompts |
- -q | --quiet | suppress output |
- -v | --verbose | enable additional output |
- | --config CONFIG [+] | set/override config option (use 'section.name=value') |
- | --debug | enable debugging output |
- | --debugger | start debugger |
- | --encoding ENCODE | set the charset encoding (default: ascii) |
- | --encodingmode MODE | set the charset encoding mode (default: strict) |
- | --traceback | always print a traceback on exception |
- | --time | time how long the command takes |
- | --profile | print command execution profile |
- | --version | output version information and exit |
- -h | --help | display help and exit |
- | --hidden | consider hidden changesets |
+ -R |
+ --repository REPO |
+ repository root directory or name of overlay bundle file |
+ |
+ --cwd DIR |
+ change working directory |
+ -y |
+ --noninteractive |
+ do not prompt, automatically pick the first choice for all prompts |
+ -q |
+ --quiet |
+ suppress output |
+ -v |
+ --verbose |
+ enable additional output |
+ |
+ --config CONFIG [+] |
+ set/override config option (use 'section.name=value') |
+ |
+ --debug |
+ enable debugging output |
+ |
+ --debugger |
+ start debugger |
+ |
+ --encoding ENCODE |
+ set the charset encoding (default: ascii) |
+ |
+ --encodingmode MODE |
+ set the charset encoding mode (default: strict) |
+ |
+ --traceback |
+ always print a traceback on exception |
+ |
+ --time |
+ time how long the command takes |
+ |
+ --profile |
+ print command execution profile |
+ |
+ --version |
+ output version information and exit |
+ -h |
+ --help |
+ display help and exit |
+ |
+ --hidden |
+ consider hidden changesets |
[+] marked option can be specified multiple times
diff -r c9d923f5d8ae -r 13aa81e2fded tests/test-minirst.py.out
--- a/tests/test-minirst.py.out Sat Feb 09 17:44:25 2013 -0500
+++ b/tests/test-minirst.py.out Sat Feb 09 21:51:21 2013 +0000
@@ -758,9 +758,15 @@
html format:
----------------------------------------------------------------------
- a | b | c |
- 1 | 2 | 3 |
- foo | bar | baz this list is very very very long man |
+a |
+b |
+c |
+1 |
+2 |
+3 |
+foo |
+bar |
+baz this list is very very very long man |
----------------------------------------------------------------------