Просмотр исходного кода

Fix type (kick3 to words3)
Fix tablewidth as it would increase when running with multiplie outputfiles (thanks Daeron)

Torbjorn Svensson 20 лет назад
Родитель
Сommit
d386011a51
2 измененных файлов с 10 добавлено и 1 удалено
  1. 3 0
      docs/Changelog
  2. 7 1
      modules/Pisg/HTMLGenerator.pm

+ 3 - 0
docs/Changelog

@@ -12,6 +12,9 @@ pisg (0.69) - ??
        spotting this).
      + Fix bug when having multiplie languages defined and they use
        different charsets (iconv left to next language).
+     + Fix tablewidthbug when running with multiplie outputs (thanks Daeron
+       for this note).
+     + Fix minortypo in HTMLGenerator.pm (thanks Daeron).
    Language Updates:
      + Portuguese: completed by DarkForce72.
      + Portuguese/Brazil: completed by Guilherme Barile.

+ 7 - 1
modules/Pisg/HTMLGenerator.pm

@@ -43,6 +43,9 @@ sub create_output
     my $self = shift;
     $self->{cfg}->{lang} = shift;
 
+    # save table width as multiplie files would just increase tablewidth
+    my $tablewidth_original = $self->{cfg}->{tablewidth};
+    
     # remove old iconv if it exist as it could mess up recode.
     delete $self->{iconv} if $self->{iconv};
 
@@ -197,6 +200,9 @@ sub create_output
     $self->_htmlfooter();
 
     close(OUTPUT);
+
+    # restore tablewidth
+    $self->{cfg}->{tablewidth} = $tablewidth_original;
 }
 
 sub _htmlheader
@@ -1046,7 +1052,7 @@ sub _mostwords
         }
         _html("</td></tr>");
     } else {
-        my $text = $self->_template_text('kick3');
+        my $text = $self->_template_text('wprds3');
         _html("<tr><td class=\"hicell\">$text</td></tr>");
     }
 }