From 4b36dee35a55b08d6d6f3bb3840220a4956f2540 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 13 Aug 2006 02:03:43 +0000 Subject: * The last release accidentially installed ikiwiki as ikiwiki.pl, now fixed. * Add --version. * Man page format fixups. * Add a %pagecase which maps lower-case page names to the actual case used in the filename. Use this in bestlinks calculation instead of forcing the link to lowercase. * Also use %pagecase in various other places that want to check if a page with a given name exists. * This means that links to pages with mixed case names will now work, even if the link is in some other case mixture, and mixed case pages should be fully supported throughout ikiwiki. * Recommend rebuilding wikis on upgrade to this version. --- mdwn2man | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mdwn2man') diff --git a/mdwn2man b/mdwn2man index 8c70c87c1..e78a4d18c 100755 --- a/mdwn2man +++ b/mdwn2man @@ -8,8 +8,12 @@ print ".TH $prog $section\n"; while (<>) { s{(\\?)\[\[([^\s\]]+)\]\]}{$1 ? "[[$2]]" : $2}eg; - s/^#\s/.SH /; + if (/^#\s/) { + s/^#\s/.SH /; + <>; # blank; + } s/^\s+//; + s/-/\\-/g; s/^Warning:.*//g; s/^$/.PP\n/; s/\`//g; -- cgit v1.2.3