mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 00:11:35 +02:00
in custom design fails if there are line breaks
This commit is contained in:
parent
00fd8e1718
commit
05ee7f0f5c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -98,6 +98,9 @@ function GetPdfMake(invoice, javascript, callback) {
|
||||
return val;
|
||||
}
|
||||
|
||||
// escape new lines
|
||||
javascript = javascript.replace(/\n/g, "\\n").replace(/\r/g, "\\r");
|
||||
|
||||
// Add ninja logo to the footer
|
||||
var dd = JSON.parse(javascript, jsonCallBack);
|
||||
var designId = invoice.invoice_design_id;
|
||||
|
Loading…
Reference in New Issue
Block a user