From 2f90104043f533ad018335ef1f34a78847a7b6fd Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 23 Jan 2018 15:55:06 +0100 Subject: [PATCH] LaTeX-Druck: Newlines nicht entfernen --- SL/Template/LaTeX.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Template/LaTeX.pm b/SL/Template/LaTeX.pm index da0967ba7..ba310a9d4 100644 --- a/SL/Template/LaTeX.pm +++ b/SL/Template/LaTeX.pm @@ -123,8 +123,8 @@ sub format_string { // $formatters{ $self->{default_content_type} } // $formatters{ text }; - $content =~ s{[^\p{Print}]|\p{Cf}}{}g; - $variable =~ s{[^\p{Print}]|\p{Cf}}{}g; + $content =~ s{[^\p{Print}\n]|\p{Cf}}{}g; + $variable =~ s{[^\p{Print}\n]|\p{Cf}}{}g; return $formatter->($self, $content, variable => $variable); } -- 2.20.1