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;
|
break;
|
||||||
}
|
}
|
||||||
case 'br': {
|
case 'br': {
|
||||||
newParagraph = this.create('text');
|
if (this.lineNumberingMode === LineNumberingMode.None && classes.includes('os-line-break')) {
|
||||||
// yep thats all
|
break;
|
||||||
newParagraph.text = '\n';
|
} else {
|
||||||
newParagraph.lineHeight = this.LINE_HEIGHT;
|
newParagraph = this.create('text');
|
||||||
break;
|
// yep thats all
|
||||||
|
newParagraph.text = '\n';
|
||||||
|
newParagraph.lineHeight = this.LINE_HEIGHT;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case 'ul':
|
case 'ul':
|
||||||
case 'ol': {
|
case 'ol': {
|
||||||
|
Loading…
Reference in New Issue
Block a user