aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorsimonraven <simonraven@web>2009-05-18 00:03:58 -0400
committerJoey Hess <joey@kitenet.net>2009-05-18 00:03:58 -0400
commit2cf8730627737ebf0b4ff1d4a5f59645f31fa56f (patch)
treeb0686f4a95ae1b601b5ef8017ab5667db11943fc /doc/bugs
parent16c6bdb4c16d66070d3693edca44a83e03b15331 (diff)
downloadikiwiki-2cf8730627737ebf0b4ff1d4a5f59645f31fa56f.tar
ikiwiki-2cf8730627737ebf0b4ff1d4a5f59645f31fa56f.tar.gz
fix up display of patch, otherwise it's less clear
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/Titles_are_lower-cased_when_creating_a_page.mdwn24
1 files changed, 13 insertions, 11 deletions
diff --git a/doc/bugs/Titles_are_lower-cased_when_creating_a_page.mdwn b/doc/bugs/Titles_are_lower-cased_when_creating_a_page.mdwn
index f2c60309b..059415819 100644
--- a/doc/bugs/Titles_are_lower-cased_when_creating_a_page.mdwn
+++ b/doc/bugs/Titles_are_lower-cased_when_creating_a_page.mdwn
@@ -4,17 +4,19 @@ If I click on "Czars in Russia", I'd like Ikiwiki to create "Czars\_in\_Russia.m
> There's a simple patch that can do this:
-> --- a/IkiWiki.pm
-> +++ b/IkiWiki.pm
-> @@ -584,7 +584,7 @@ sub htmllink ($$$;@) {
-> return "<span class=\"createlink\"><a href=\"".
-> cgiurl(
-> do => "create",
-> - page => pagetitle(lc($link), 1),
-> + page => pagetitle($link, 1),
-> from => $lpage
-> ).
-> "\">?</a>$linktext</span>"
+<pre>
+-- a/IkiWiki.pm
++++ b/IkiWiki.pm
+@@ -584,7 +584,7 @@ sub htmllink ($$$;@) {
+ return "&lt;span class=\"createlink\">&lt;a href=\"".
+ cgiurl(
+ do => "create",
+- page => pagetitle(lc($link), 1),
++ page => pagetitle($link, 1),
+ from => $lpage
+ ).
+ "\">?&lt;/a>$linktext&lt;/span>"
+</pre>
> This is fine if you don't mind mixed or randomly cased filenames getting
> created. Otoh, if the link happened to start a sentence and so had its