From 3660b1c7a1757341024ceb267126ca63cd3c582a Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 2 Mar 2007 00:37:22 +0000 Subject: * 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. --- t/pagetitle.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 't/pagetitle.t') diff --git a/t/pagetitle.t b/t/pagetitle.t index 1bb4421e4..37adba144 100755 --- a/t/pagetitle.t +++ b/t/pagetitle.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::pagetitle("foo_bar_baz"), "foo bar baz"); is(IkiWiki::pagetitle("foo_bar__33__baz"), "foo bar!baz"); is(IkiWiki::pagetitle("foo_bar__1234__baz"), "foo barӒbaz"); is(IkiWiki::pagetitle("foo_bar___33___baz"), "foo bar ! baz"); +is(IkiWiki::pagetitle("foo_bar___95___baz"), "foo bar _ baz"); -- cgit v1.2.3