diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-09-18 19:28:09 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-09-18 19:28:09 +0000 |
commit | 396341b2c3c9cf8f15cc43d3aaec3be759345add (patch) | |
tree | 6b6a47ebba4090a4d05028518d0abc91ba716220 /IkiWiki/Plugin | |
parent | 55c18993b818f77338ef5a905c4119d447f96b48 (diff) |
* 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
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/template.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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, |