Merge pull request #3268 from emanuelschuetze/pdf-issue
Fixed formatting errors in motion pdf (Fixed #3228).
This commit is contained in:
commit
1b6dd93e6e
@ -766,7 +766,9 @@ angular.module('OpenSlidesApp.core.pdf', [])
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
currentParagraph = create("text");
|
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.margin = [20, 0, 0, 0];
|
||||||
}
|
}
|
||||||
currentParagraph.lineHeight = 1.25;
|
currentParagraph.lineHeight = 1.25;
|
||||||
@ -860,6 +862,7 @@ angular.module('OpenSlidesApp.core.pdf', [])
|
|||||||
case "ul":
|
case "ul":
|
||||||
case "ol":
|
case "ol":
|
||||||
var list = create(nodeName);
|
var list = create(nodeName);
|
||||||
|
ComputeStyle(list, styles);
|
||||||
if (lineNumberMode == "outside") {
|
if (lineNumberMode == "outside") {
|
||||||
var lines = extractLineNumbers(element);
|
var lines = extractLineNumbers(element);
|
||||||
currentParagraph = parseChildren(list[nodeName], element, currentParagraph, styles, diff_mode);
|
currentParagraph = parseChildren(list[nodeName], element, currentParagraph, styles, diff_mode);
|
||||||
@ -884,6 +887,7 @@ angular.module('OpenSlidesApp.core.pdf', [])
|
|||||||
listCol.margin = [0,10,0,0];
|
listCol.margin = [0,10,0,0];
|
||||||
alreadyConverted.push(listCol);
|
alreadyConverted.push(listCol);
|
||||||
} else {
|
} else {
|
||||||
|
list.margin = [20, 0, 0, 0];
|
||||||
alreadyConverted.push(list);
|
alreadyConverted.push(list);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user