* Yet another fix for those poor case-insensative `OSX users.
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 18 Sep 2006 19:28:09 +0000 (19:28 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 18 Sep 2006 19:28:09 +0000 (19:28 +0000)
* chomp trailing newlines at the end of templates read in by the template
  plugin, to allow use of the template preprocessor directive in
  whitespace-sensative situations. Closes: #387073

IkiWiki/Plugin/template.pm
debian/changelog

index 1a4faf05f03515c30e85f3d0d4a9359d9ab87c37..3d088289de667f00651739be80268ba6316a51fe 100644 (file)
@@ -32,6 +32,7 @@ sub preprocess (@) { #{{{
                filter => sub {
                         my $text_ref = shift;
                         $$text_ref=&Encode::decode_utf8($$text_ref);
+                       chomp $$text_ref;
                 },
                 filename => srcfile($template_file),
                 die_on_bad_params => 0,
index 13c9adb3ae547d069c0f5708fc3e61c03e2b4e61..de9f64cdb3909236d86160fbd6f0112747b7cf76 100644 (file)
@@ -32,7 +32,7 @@ ikiwiki (1.27) UNRELEASED; urgency=low
   * Add a stub local.css to avoid problems with 404's.
   * Patch from Recai to fix a wide character warning from the search plugin
     during setup if the wikiname contains utf8.
-  * Yet another fix for those poor case-insensative OSX users.
+  * Yet another fix for those poor case-insensative `OSX users.
   * pagetemplate hooks are now also called when generating cgi pages.
   * Add a favicon plugin, which simply adds a link tag for an icon to each
     page (and cgis).
@@ -47,8 +47,11 @@ ikiwiki (1.27) UNRELEASED; urgency=low
   * Updated ikiwiki.svgz from Recai, includes an icon and is used to generate
     a multi-resolution favicon.ico.
   * README.Debian: typo Closes: #388110
+  * chomp trailing newlines at the end of templates read in by the template
+    plugin, to allow use of the template preprocessor directive in
+    whitespace-sensative situations. Closes: #387073
 
- -- Joey Hess <joeyh@debian.org>  Mon, 18 Sep 2006 14:03:42 -0400
+ -- Joey Hess <joeyh@debian.org>  Mon, 18 Sep 2006 15:26:01 -0400
 
 ikiwiki (1.26) unstable; urgency=low