diff options
author | ivan <ivan> | 2007-10-14 23:10:35 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-10-14 23:10:35 +0000 |
commit | d4bab6d6ccea93a894f8fe0ef324886d3284ca67 (patch) | |
tree | 3e9776d1d08a001e72473ad76e7df2c3cbf56507 | |
parent | 53febc36fce75482bc3f154374eeb458d5e3b3e2 (diff) |
escape \dollar in invoice_latexnotes
-rw-r--r-- | FS/FS/cust_bill.pm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index b9c0b5fb4..45648f1d4 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -2272,13 +2272,14 @@ sub print_html { } else { $invoice_data{'notes'} = join("\n", map { - s/%%(.*)$/<!-- $1 -->/; - s/\\section\*\{\\textsc\{(.)(.*)\}\}/<p><b><font size="+1">$1<\/font>\U$2<\/b>/; - s/\\begin\{enumerate\}/<ol>/; - s/\\item / <li>/; - s/\\end\{enumerate\}/<\/ol>/; - s/\\textbf\{(.*)\}/<b>$1<\/b>/; + s/%%(.*)$/<!-- $1 -->/g; + s/\\section\*\{\\textsc\{(.)(.*)\}\}/<p><b><font size="+1">$1<\/font>\U$2<\/b>/g; + s/\\begin\{enumerate\}/<ol>/g; + s/\\item / <li>/g; + s/\\end\{enumerate\}/<\/ol>/g; + s/\\textbf\{(.*)\}/<b>$1<\/b>/g; s/\\\\\*/ /; + s/\\dollar ?/\$/g; $_; } $conf->config_orbase('invoice_latexnotes', $template) |