]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Template/OpenDocument.pm
HTML-zu-LaTeX/OpenDocument:   durch normale Leerzeichen ersetzen
[mfinanz.git] / SL / Template / OpenDocument.pm
index 085fa25dbd3e638bc7c5f060eff5ac58fcf0761c..85184c01986ff6b0f9971258967af27830081f1b 100644 (file)
@@ -73,7 +73,7 @@ sub _format_html {
   $content                      =~ s{ ^<p> | </p>$ }{}gx;
   $content                      =~ s{ \r+ }{}gx;
   $content                      =~ s{ \n+ }{ }gx;
-  $content                      =~ s{ \s+ }{ }gx;
+  $content                      =~ s{ (?:\&nbsp;|\s)+ }{ }gx;
 
   my $in_p                      = 1;
   my $p_start_tag               = qq|<text:p text:style-name="@{[ $self->{current_text_style} ]}">|;