1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix line wrapping in PDF

This commit is contained in:
Hillel Coren 2017-10-23 13:47:52 +03:00
parent 8103be4e46
commit 96b2cdc9d3
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1111,7 +1111,7 @@ NINJA.processItem = function(item, section) {
item.style.push(section);
// make sure numbers aren't wrapped
if (item.text && item.text.match && item.text.match(/\d\.\d\d|\d,\d\d/)) {
if (item.text && item.text.match && item.text.match(/\d[.,]\d\d($| [A-Z]{3}$)/)) {
item.style.push('noWrap');
}