From 693f2ebe60b292a42ae1bf6633704ca6c8e214c7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 16 Mar 2006 13:42:02 +0000 Subject: [PATCH] USTVA: Leerzeilen/Zeilenumbrueche in der Adressangabe muessen richtig escapet werden. Fix fuer Bug 311. --- bin/mozilla/ustva.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/ustva.pl b/bin/mozilla/ustva.pl index 4ee763881..f39229d06 100644 --- a/bin/mozilla/ustva.pl +++ b/bin/mozilla/ustva.pl @@ -147,6 +147,7 @@ sub report { my $temp = $form->{address}; $temp =~ s/\\n/
/; ($form->{co_street}, $form->{co_city}) = split("
", $temp); + $form->{co_city} =~ s/\\n//g; } if ($form->{co_street} ne '' @@ -990,6 +991,7 @@ sub generate_ustva { my $temp = $form->{address}; $temp =~ s/\\n/
/; ($form->{co_street}, $form->{co_city}) = split("
", $temp); + $form->{co_city} =~ s/\\n//g; } if ( $form->{format} eq 'pdf' @@ -1025,7 +1027,7 @@ sub generate_ustva { $form->{bold} = ""; $form->{endbold} = ""; $form->{br} = "
"; - $form->{address} =~ s/\\n/
/; + $form->{address} =~ s/\\n/
/g; } -- 2.20.1