]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Fix display of escaped wikilinks containing anchors.
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 6 Apr 2007 21:20:14 +0000 (21:20 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 6 Apr 2007 21:20:14 +0000 (21:20 +0000)
IkiWiki.pm
debian/changelog
doc/wikilink/discussion.mdwn
po/ikiwiki.pot

index 8f9bd990a02c48a26a249e36e3df245807dbedec..37ff792d124369f3804dedbc4c41be04e0b0a711 100644 (file)
@@ -549,8 +549,14 @@ sub linkify ($$$) { #{{{
 
        $content =~ s{(\\?)$config{wiki_link_regexp}}{
                defined $2
-                       ? ( $1 ? "[[$2|$3]]" : htmllink($lpage, $page, linkpage($3), anchor => $4, linktext => pagetitle($2)))
-                       : ( $1 ? "[[$3]]"    : htmllink($lpage, $page, linkpage($3), anchor => $4))
+                       ? ( $1 
+                               ? "[[$2|$3".(length $4 ? "#$4" : "")."]]" 
+                               : htmllink($lpage, $page, linkpage($3),
+                                       anchor => $4, linktext => pagetitle($2)))
+                       : ( $1 
+                               ? "[[$3".(length $4 ? "#$4" : "")."]]"
+                               : htmllink($lpage, $page, linkpage($3),
+                                       anchor => $4))
        }eg;
        
        return $content;
index a26394cd5db2cc20e736e6c612d27bbcafdda5fd..ac6af107578e1bf98af8a5301cde2145c611f810 100644 (file)
@@ -43,8 +43,9 @@ ikiwiki (1.49) UNRELEASED; urgency=low
     flashing during page load.
   * Fix smiley plugin to scan smileys.mdwn after it's updated, which fixes
     a bug caused by committing changes to smilies.mdwn.
+  * Fix display of escaped wikilinks containing anchors.
 
- -- Joey Hess <joeyh@debian.org>  Fri, 06 Apr 2007 16:32:09 -0400
+ -- Joey Hess <joeyh@debian.org>  Fri, 06 Apr 2007 17:17:52 -0400
 
 ikiwiki (1.48) unstable; urgency=low
 
index 0bf33ade9b29aebb9c3833ff21881ca2fe11b3ed..3b6f042d3a99eac98797e3aa6728cbbff227a69d 100644 (file)
@@ -18,3 +18,5 @@ BTW, ikiwiki doesn't displays the #foo anchor in the example
 >
 > The lack of the `#foo` anchor in the anchor example on [[wikilink]]
 > definitely looks like a bug.  --[[JoshTriplett]]
+
+>> Fixed that --[[Joey]]
index e12b524944315b34a5c8e4dd69b89e19acff046a..29db5e4d3df9af8be168357f4bdc919300906bc1 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-04-06 16:36-0400\n"
+"POT-Creation-Date: 2007-04-06 17:19-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -545,7 +545,7 @@ msgstr ""
 #. translators: preprocessor directive name,
 #. translators: the second a page name, the
 #. translators: third a number.
-#: ../IkiWiki.pm:614
+#: ../IkiWiki.pm:620
 #, perl-format
 msgid "%s preprocessing loop detected on %s at depth %i"
 msgstr ""