Ver código fonte

Update word breaks to break line by adding "-<br />" instead of <WBR> to conform to HTML specifications

sbingner 24 anos atrás
pai
commit
2aafad4e39
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      modules/Pisg/HTMLGenerator.pm

+ 1 - 1
modules/Pisg/HTMLGenerator.pm

@@ -1808,7 +1808,7 @@ sub _replace_links
 sub _split_long_text
 sub _split_long_text
 {
 {
     my ($self, $str) = @_;
     my ($self, $str) = @_;
-    $str =~ s/(\S{$self->{cfg}->{quotewidth}})(?!\s)/$1<WBR>/og;
+    $str =~ s/(\S{$self->{cfg}->{quotewidth}})(?!\s)/$1-<br />/og;
 
 
     return($str);
     return($str);
 }
 }