summaryrefslogtreecommitdiff
path: root/LedgerSMB/Template/PDF.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/Template/PDF.pm')
-rwxr-xr-xLedgerSMB/Template/PDF.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/Template/PDF.pm b/LedgerSMB/Template/PDF.pm
index aca26f71..557a5d09 100755
--- a/LedgerSMB/Template/PDF.pm
+++ b/LedgerSMB/Template/PDF.pm
@@ -57,7 +57,7 @@ sub preprocess {
for (@{$rawvars}) {
push @{$vars}, preprocess($_);
}
- } else (!$type) {
+ } elsif (!$type) {
#XXX Fix escaping
$rawvars =~ s/([&\$\\_<>~^#\%\{\}])/\\$1/g;
$rawvars =~ s/"(.*)"/``$1''/gs;
@@ -80,7 +80,7 @@ sub process {
INCLUDE_PATH => $parent->{include_path},
START_TAG => quotemeta('<?lsmb'),
END_TAG => quotemeta('?>'),
- DELIMITER => ';'
+ DELIMITER => ';',
DEBUG => ($parent->{debug})? 'dirs': undef,
DEBUG_FORMAT => '',
}) || throw Error::Simple Template::Latex->error();