From 396341b2c3c9cf8f15cc43d3aaec3be759345add Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 18 Sep 2006 19:28:09 +0000 Subject: * Yet another fix for those poor case-insensative `OSX users. * 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/template.pm b/IkiWiki/Plugin/template.pm index 1a4faf05f..3d088289d 100644 --- a/IkiWiki/Plugin/template.pm +++ b/IkiWiki/Plugin/template.pm @@ -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, -- cgit v1.2.3