Fix unwanted line break in pdf export (#6408)
for inactive linenumbering
This commit is contained in:
parent
ff1d5c0c4d
commit
58d5bf7d6c
@ -342,11 +342,15 @@ export class HtmlToPdfService {
|
||||
break;
|
||||
}
|
||||
case 'br': {
|
||||
newParagraph = this.create('text');
|
||||
// yep thats all
|
||||
newParagraph.text = '\n';
|
||||
newParagraph.lineHeight = this.LINE_HEIGHT;
|
||||
break;
|
||||
if (this.lineNumberingMode === LineNumberingMode.None && classes.includes('os-line-break')) {
|
||||
break;
|
||||
} else {
|
||||
newParagraph = this.create('text');
|
||||
// yep thats all
|
||||
newParagraph.text = '\n';
|
||||
newParagraph.lineHeight = this.LINE_HEIGHT;
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 'ul':
|
||||
case 'ol': {
|
||||
|
Loading…
Reference in New Issue
Block a user