Merge pull request #3268 from emanuelschuetze/pdf-issue

Fixed formatting errors in motion pdf (Fixed #3228).
This commit is contained in:
Emanuel Schütze 2017-05-23 22:52:31 +02:00 committed by GitHub
commit 1b6dd93e6e

View File

@ -766,7 +766,9 @@ angular.module('OpenSlidesApp.core.pdf', [])
break;
} else {
currentParagraph = create("text");
if (lineNumberMode == "outside" && brParentNodeName == ("INS" || "DEL")) {
if (lineNumberMode == "outside" &&
brParentNodeName != "LI"&&
element.parentNode.parentNode.nodeName != "LI") {
currentParagraph.margin = [20, 0, 0, 0];
}
currentParagraph.lineHeight = 1.25;
@ -860,6 +862,7 @@ angular.module('OpenSlidesApp.core.pdf', [])
case "ul":
case "ol":
var list = create(nodeName);
ComputeStyle(list, styles);
if (lineNumberMode == "outside") {
var lines = extractLineNumbers(element);
currentParagraph = parseChildren(list[nodeName], element, currentParagraph, styles, diff_mode);
@ -884,6 +887,7 @@ angular.module('OpenSlidesApp.core.pdf', [])
listCol.margin = [0,10,0,0];
alreadyConverted.push(listCol);
} else {
list.margin = [20, 0, 0, 0];
alreadyConverted.push(list);
}
} else {