1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Fix line wrapping in PDF

This commit is contained in:
Hillel Coren 2017-10-23 13:46:54 +03:00
parent de31d77235
commit 55e7a04bd2
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

@ -1113,7 +1113,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');
}