aboutsummaryrefslogtreecommitdiff
path: root/t/titlepage.t
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-02 00:37:22 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-02 00:37:22 +0000
commit3660b1c7a1757341024ceb267126ca63cd3c582a (patch)
tree02830c3a930fe61281898ef91650498753219548 /t/titlepage.t
parent790fb348ae854a7e8a6e2ccd93df547dc15cd059 (diff)
downloadikiwiki-3660b1c7a1757341024ceb267126ca63cd3c582a.tar
ikiwiki-3660b1c7a1757341024ceb267126ca63cd3c582a.tar.gz
* Allow for underscores to appear in page titles, if encoded appropriately
(__95__) in filenames. Previously, all underscores were replaced with spaces. Thanks, Enrico Zini for noticing that bug.
Diffstat (limited to 't/titlepage.t')
-rwxr-xr-xt/titlepage.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/titlepage.t b/t/titlepage.t
index 6e1856a15..cc56db70c 100755
--- a/t/titlepage.t
+++ b/t/titlepage.t
@@ -1,7 +1,7 @@
#!/usr/bin/perl
use warnings;
use strict;
-use Test::More tests => 6;
+use Test::More tests => 7;
BEGIN { use_ok("IkiWiki"); }
@@ -10,3 +10,4 @@ is(IkiWiki::titlepage("foo bar baz"), "foo_bar_baz");
is(IkiWiki::titlepage("foo bar/baz"), "foo_bar/baz");
is(IkiWiki::titlepage("foo bar&baz"), "foo_bar__38__baz");
is(IkiWiki::titlepage("foo bar & baz"), "foo_bar___38___baz");
+is(IkiWiki::titlepage("foo bar_baz"), "foo_bar__95__baz");