This commit is contained in:
parent
6a526c7335
commit
252381c57d
1 changed files with 20 additions and 0 deletions
20
doc/todo/mdwn2man:_make_backticks_bold.mdwn
Normal file
20
doc/todo/mdwn2man:_make_backticks_bold.mdwn
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
The traditionnal way of marking commandline flags in a manpage is with a `.B` (for Bold, I guess). It doesn't seem to be used by mdwn2man, which makes the manpage look a little more dull than it could.
|
||||||
|
|
||||||
|
The following patch makes those options come out more obviously:
|
||||||
|
|
||||||
|
[[!format diff """
|
||||||
|
diff --git a/Build/mdwn2man b/Build/mdwn2man
|
||||||
|
index ba5919b..7f819ad 100755
|
||||||
|
--- a/Build/mdwn2man
|
||||||
|
+++ b/Build/mdwn2man
|
||||||
|
@@ -8,6 +8,7 @@ print ".TH $prog $section\n";
|
||||||
|
|
||||||
|
while (<>) {
|
||||||
|
s{(\\?)\[\[([^\s\|\]]+)(\|[^\s\]]+)?\]\]}{$1 ? "[[$2]]" : $2}eg;
|
||||||
|
+ s/\`([^\`]*)\`/\\fB$1\\fP/g;
|
||||||
|
s/\`//g;
|
||||||
|
s/^\s*\./\\&./g;
|
||||||
|
if (/^#\s/) {
|
||||||
|
"""]]
|
||||||
|
|
||||||
|
I tested it against the git-annex manpage and it seems to work well. --[[anarcat]]
|
Loading…
Add table
Add a link
Reference in a new issue