projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d73eb7d
)
fix
author
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 31 Mar 2007 06:56:52 +0000
(06:56 +0000)
committer
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 31 Mar 2007 06:56:52 +0000
(06:56 +0000)
mdwn2man
patch
|
blob
|
history
diff --git
a/mdwn2man
b/mdwn2man
index 86a524bd648a02c4b21aae545a0e156b622eb03d..d3db4316505f6fa79500d032269b28b39245b7fe 100755
(executable)
--- a/
mdwn2man
+++ b/
mdwn2man
@@
-7,7
+7,7
@@
my $section=shift;
print ".TH $prog $section\n";
while (<>) {
- s{(\\?)\[\[([^\s\|\]]+)(\|[^\s\]])?\]\]}{$1 ? "[[$2]]" : $2}eg;
+ s{(\\?)\[\[([^\s\|\]]+)(\|[^\s\]]
+
)?\]\]}{$1 ? "[[$2]]" : $2}eg;
if (/^#\s/) {
s/^#\s/.SH /;
<>; # blank;