From b39c8ce980f42154a4b7686de72a77789bfd1145 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 22 Nov 2006 15:19:30 +0000 Subject: [PATCH] Recommit von r981 von mbunkus: 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 709a3bc7d..a294afc58 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