Implement list styles in pdf (fixes #3338)

This commit is contained in:
FinnStutzenstein 2017-10-27 14:35:09 +02:00
parent 73407133bd
commit 78f5d1f516
2 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,7 @@
"ngstorage": "~0.3.11", "ngstorage": "~0.3.11",
"ngBootbox": "~0.1.3", "ngBootbox": "~0.1.3",
"papaparse": "~4.1.2", "papaparse": "~4.1.2",
"pdfmake": "0.1.30", "pdfmake": "0.1.33",
"roboto-fontface": "~0.6.0" "roboto-fontface": "~0.6.0"
}, },
"overrides": { "overrides": {

View File

@ -819,6 +819,9 @@ angular.module('OpenSlidesApp.core.pdf', [])
currentParagraph = create("text"); currentParagraph = create("text");
currentParagraph.lineHeight = 1.25; currentParagraph.lineHeight = 1.25;
var stackDiv = create("stack"); var stackDiv = create("stack");
if (_.indexOf(classes, 'os-split-before') > -1) {
stackDiv.listType = 'none';
}
stackDiv.stack.push(currentParagraph); stackDiv.stack.push(currentParagraph);
ComputeStyle(stackDiv, styles); ComputeStyle(stackDiv, styles);
currentParagraph = parseChildren(stackDiv.stack, element, currentParagraph, [], diff_mode); currentParagraph = parseChildren(stackDiv.stack, element, currentParagraph, [], diff_mode);