Fixed linebreaks in pdf.

This commit is contained in:
Emanuel Schütze 2017-03-27 11:16:48 +02:00
parent 0d98fa3a88
commit fa76cb2866

View File

@ -662,7 +662,11 @@ angular.module('OpenSlidesApp.core.pdf', [])
break; break;
case "br": case "br":
//in case of inline-line-numbers and the os-line-break class ignore the break //in case of inline-line-numbers and the os-line-break class ignore the break
if (!(lineNumberMode == "inline" && element.getAttribute("class") == "os-line-break")) { if ((lineNumberMode == "inline" && element.getAttribute("class") == "os-line-break") ||
(lineNumberMode == "outside" && element.getAttribute("class") == "os-line-break" && element.parentNode.tagName == "INS") ||
(lineNumberMode == "outside" && element.getAttribute("class") == "os-line-break" && element.parentNode.getAttribute("class") == "merge-before")) {
break;
} else {
currentParagraph = create("text"); currentParagraph = create("text");
currentParagraph.lineHeight = 1.25; currentParagraph.lineHeight = 1.25;
alreadyConverted.push(currentParagraph); alreadyConverted.push(currentParagraph);