fix long lines in pdf list (fixes #3231)

This commit is contained in:
sean 2017-04-30 16:05:34 +02:00 committed by Emanuel Schütze
parent 4f0691075c
commit 37b96bb0bc
1 changed files with 5 additions and 5 deletions

View File

@ -743,21 +743,21 @@ angular.module('OpenSlidesApp.core.pdf', [])
}
break;
case "br":
var brParent = element.parentNode;
var brParentNodeName = brParent.nodeName;
//in case of inline-line-numbers and the os-line-break class ignore the break
if ((lineNumberMode == "inline" &&
element.getAttribute("class") == "os-line-break") ||
(lineNumberMode == "outside" &&
element.getAttribute("class") == "os-line-break" &&
element.parentNode.getAttribute("class") == "insert") ||
brParent.getAttribute("class") == "insert") ||
(lineNumberMode == "outside" &&
element.getAttribute("class") == "os-line-break" &&
element.parentNode.getAttribute("class") == "merge-before")) {
brParent.getAttribute("class") == "merge-before")) {
break;
} else {
currentParagraph = create("text");
if (lineNumberMode == "none") {
currentParagraph.margin = [0, 0, 0, 0];
} else {
if (lineNumberMode == "outside" && brParentNodeName == ("INS" || "DEL")) {
currentParagraph.margin = [20, 0, 0, 0];
}
currentParagraph.lineHeight = 1.25;