Anzeige von mehrzeiligen Firmenadressen berichtigt. Fix für Bug #484.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 10 Jan 2007 16:00:59 +0000 (16:00 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 10 Jan 2007 16:00:59 +0000 (16:00 +0000)
bin/mozilla/rp.pl
bin/mozilla/ustva.pl

index 034fa4f..7e931d4 100644 (file)
@@ -1253,7 +1253,8 @@ sub generate_balance_sheet {
   $form->{IN} = "balance_sheet.html";
 
   # setup company variables for the form
-  map { $form->{$_} = $myconfig{$_} }
+  map { $form->{$_} = $myconfig{$_};
+        $form->{$_} =~ s/\\n/\n/g; }
     (qw(company address businessnumber nativecurr));
 
   $form->{templates} = $myconfig{templates};
index bf9aaec..6f097c7 100644 (file)
@@ -1033,7 +1033,7 @@ sub generate_ustva {
     $form->{bold}    = "<b>";
     $form->{endbold} = "</b>";
     $form->{br}      = "<br>";
-    $form->{address} =~ s/\\n/<br \/>/g;
+    $form->{address} =~ s/\\n/\n/g;
 
   } elsif ($form->{format} =~ /^elster/) {