Christoph Berg 21 лет назад
Родитель
Сommit
fd6ababd6f
2 измененных файлов с 4 добавлено и 0 удалено
  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.
      + Added support for multiple channels in config with the same name.
        Even multiple channel directives for the very same channel are
        Even multiple channel directives for the very same channel are
        supported (closes SF tracker #967404, patch by Torbjörn Svensson).
        supported (closes SF tracker #967404, patch by Torbjörn Svensson).
+   * Fixes:
+     + chomp PageHead and PageFoot files (thanks, Torbjörn).
    * Documentation:
    * Documentation:
      + Local options override global ones, not vice-versa.
      + Local options override global ones, not vice-versa.
    * Formats:
    * Formats:

+ 2 - 0
modules/Pisg/HTMLGenerator.pm

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