Jelajahi Sumber

chomp include files

Christoph Berg 21 tahun lalu
induk
melakukan
fd6ababd6f
2 mengubah file dengan 4 tambahan dan 0 penghapusan
  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);