summaryrefslogtreecommitdiff
path: root/mdwn2man
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-13 02:03:43 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-13 02:03:43 +0000
commit4b36dee35a55b08d6d6f3bb3840220a4956f2540 (patch)
tree4202c4fa32c2ec537e065072e45b4bb9344b1147 /mdwn2man
parent85ecbc6c4ea3af0b39034d985d4ca4adb243d94f (diff)
* 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.
Diffstat (limited to 'mdwn2man')
-rwxr-xr-xmdwn2man6
1 files changed, 5 insertions, 1 deletions
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;