summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-02 21:50:27 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-02 21:50:27 +0000
commitb061afa04f88b3bceca4a1058a5fee2812bdd593 (patch)
treea0579bbe00fa572eb91b984df6366f69432fb22d /bin
parentc1f06b98f4cbce55c14c014b12f3c127ce8d4a44 (diff)
Handle <br> and $form->address in templates
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1842 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rw-r--r--bin/rp.pl6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/rp.pl b/bin/rp.pl
index 900b47be..e81f199c 100644
--- a/bin/rp.pl
+++ b/bin/rp.pl
@@ -1057,9 +1057,8 @@ sub generate_income_statement {
# setup variables for the form
my @vars = qw(company address businessnumber);
for (@vars) { $form->{$_} = $myconfig{$_} }
- ##SC: START HTML
+ ##SC: The escaped form will be converted in-template
$form->{address} =~ s/\\n/<br>/g;
- ##SC: END HTML
my $template = LedgerSMB::Template->new(
@@ -1107,9 +1106,8 @@ sub generate_balance_sheet {
for (qw(company address businessnumber nativecurr login)) {
$form->{$_} = $myconfig{$_};
}
- ##SC: START HTML
+ ##SC: The escaped form will be converted in-template
$form->{address} =~ s/\\n/<br>/g;
- ##SC: END HTML
$form->{templates} = $myconfig{templates};