Explorar o código

chomp include files

Christoph Berg %!s(int64=21) %!d(string=hai) anos
pai
achega
fd6ababd6f
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 2 0
      docs/Changelog
  2. 2 0
      modules/Pisg/HTMLGenerator.pm

+ 2 - 0
docs/Changelog

@@ -6,6 +6,8 @@ pisg (0.67) - ??
      + Added support for multiple channels in config with the same name.
        Even multiple channel directives for the very same channel are
        supported (closes SF tracker #967404, patch by Torbjörn Svensson).
+   * Fixes:
+     + chomp PageHead and PageFoot files (thanks, Torbjörn).
    * Documentation:
      + Local options override global ones, not vice-versa.
    * Formats:

+ 2 - 0
modules/Pisg/HTMLGenerator.pm

@@ -357,6 +357,7 @@ sub _pageheader
         return;
     }
     while (<PAGEHEAD>) {
+        chomp;
         _html($_);
     }
     close(PAGEHEAD);
@@ -370,6 +371,7 @@ sub _pagefooter
         return;
     }
     while (<PAGEFOOT>) {
+        chomp;
         _html($_);
     }
     close(PAGEFOOT);