aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-04 21:08:01 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-04 21:08:01 +0000
commitd25e91e12735b9c1095776f7f32aedecf920ff2d (patch)
treeec1290e0ce767a4a16bb9913d737e5e848392439
parent83618add817c1b405d67801d49b6937f0101bace (diff)
downloadikiwiki-d25e91e12735b9c1095776f7f32aedecf920ff2d.tar
ikiwiki-d25e91e12735b9c1095776f7f32aedecf920ff2d.tar.gz
* Fix tags to page names that contain special characters.
-rw-r--r--IkiWiki/Plugin/tag.pm1
-rw-r--r--debian/changelog3
-rw-r--r--doc/bugs/special_characters_in_tag_names_need_manual_escaping.mdwn4
-rw-r--r--po/ikiwiki.pot2
4 files changed, 7 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm
index 7ab271622..733d76f4e 100644
--- a/IkiWiki/Plugin/tag.pm
+++ b/IkiWiki/Plugin/tag.pm
@@ -43,6 +43,7 @@ sub preprocess (@) { #{{{
delete $params{preview};
foreach my $tag (keys %params) {
+ $tag=IkiWiki::linkpage($tag);
$tags{$page}{$tag}=1;
# hidden WikiLink
push @{$links{$page}}, tagpage($tag);
diff --git a/debian/changelog b/debian/changelog
index 0b8c28d1d..461b791d3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -22,8 +22,9 @@ ikiwiki (1.49) UNRELEASED; urgency=low
* Make the OpenID library a reccommendation of the Debian package, rather
than just a suggests, since OpenID is enabled by default.
* Fix a bug that caused link(foo) to succeed if page foo did not exist.
+ * Fix tags to page names that contain special characters.
- -- Joey Hess <joeyh@debian.org> Wed, 04 Apr 2007 16:55:36 -0400
+ -- Joey Hess <joeyh@debian.org> Wed, 04 Apr 2007 17:06:59 -0400
ikiwiki (1.48) unstable; urgency=low
diff --git a/doc/bugs/special_characters_in_tag_names_need_manual_escaping.mdwn b/doc/bugs/special_characters_in_tag_names_need_manual_escaping.mdwn
index 20ddc2ce7..9f6ad8a9b 100644
--- a/doc/bugs/special_characters_in_tag_names_need_manual_escaping.mdwn
+++ b/doc/bugs/special_characters_in_tag_names_need_manual_escaping.mdwn
@@ -1 +1,3 @@
-Having read [[i18n_characters_in_post_title]], I have a page named `St John's` in a file named `St_John__39__s.mdwn`. Regular wikilinks like `\\[[St_John's]]` successfully point to that page. However, if I tag a page with `\[[tag St_John's]]`, that link is shown as pointing to a non-existant page. Modify the tag to read `\[[tag St_John__39__s]]` works around the problem. \ No newline at end of file
+Having read [[i18n_characters_in_post_title]], I have a page named `St John's` in a file named `St_John__39__s.mdwn`. Regular wikilinks like `\\[[St_John's]]` successfully point to that page. However, if I tag a page with `\[[tag St_John's]]`, that link is shown as pointing to a non-existant page. Modify the tag to read `\[[tag St_John__39__s]]` works around the problem.
+
+[[done]] in 1.49 --[[Joey]]
diff --git a/po/ikiwiki.pot b/po/ikiwiki.pot
index a68da073c..2fda7cd94 100644
--- a/po/ikiwiki.pot
+++ b/po/ikiwiki.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-04-02 14:54-0400\n"
+"POT-Creation-Date: 2007-04-04 17:06-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"