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

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

sbingner 23 лет назад
Родитель
Сommit
2aafad4e39
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules/Pisg/HTMLGenerator.pm

+ 1 - 1
modules/Pisg/HTMLGenerator.pm

@@ -1808,7 +1808,7 @@ sub _replace_links
 sub _split_long_text
 {
     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);
 }