Explorar el Código

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

Torbjorn Svensson hace 20 años
padre
commit
d386011a51
Se han modificado 2 ficheros con 10 adiciones y 1 borrados
  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).
        spotting this).
      + Fix bug when having multiplie languages defined and they use
      + Fix bug when having multiplie languages defined and they use
        different charsets (iconv left to next language).
        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:
    Language Updates:
      + Portuguese: completed by DarkForce72.
      + Portuguese: completed by DarkForce72.
      + Portuguese/Brazil: completed by Guilherme Barile.
      + Portuguese/Brazil: completed by Guilherme Barile.

+ 7 - 1
modules/Pisg/HTMLGenerator.pm

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