From: Joey Hess Date: Fri, 30 May 2008 22:01:16 +0000 (-0400) Subject: improved period escape X-Git-Tag: 2.48~2 X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=4045ee01e5295b08bf5b45a1434cd6743caeb18d improved period escape --- diff --git a/mdwn2man b/mdwn2man index 420cd4ef3..e4ba5aadf 100755 --- a/mdwn2man +++ b/mdwn2man @@ -9,7 +9,7 @@ print ".TH $prog $section\n"; while (<>) { s{(\\?)\[\[([^\s\|\]]+)(\|[^\s\]]+)?\]\]}{$1 ? "[[$2]]" : $2}eg; s/\`//g; - s/^\./\\./g; + s/^\./\\&./g; if (/^#\s/) { s/^#\s/.SH /; <>; # blank;