Merge pull request #3085 from tsiegleauq/issue3025-duplicated-header
fix double PDF Head in Motions (fixes #3025)
This commit is contained in:
commit
bd8c7f61a0
@ -531,14 +531,36 @@ angular.module('OpenSlidesApp.core.pdf', [])
|
|||||||
case "h4":
|
case "h4":
|
||||||
case "h5":
|
case "h5":
|
||||||
case "h6":
|
case "h6":
|
||||||
|
// Special case quick fix to handle the dirty HTML format*/
|
||||||
|
// see following issue: https://github.com/OpenSlides/OpenSlides/issues/3025
|
||||||
|
if (lineNumberMode === "outside") {
|
||||||
|
var HeaderOutsideLineNumber = {
|
||||||
|
width: 20,
|
||||||
|
text: element.childNodes[0].getAttribute("data-line-number"),
|
||||||
|
color: "gray",
|
||||||
|
fontSize: 8,
|
||||||
|
margin: [0, 2, 0, 0]
|
||||||
|
};
|
||||||
|
var HeaderOutsideLineNumberText = {
|
||||||
|
text: element.childNodes[1].textContent,
|
||||||
|
};
|
||||||
|
ComputeStyle(HeaderOutsideLineNumberText, elementStyles[nodeName]);
|
||||||
|
var HeaderOutsideLineNumberColumns = {
|
||||||
|
columns: [
|
||||||
|
HeaderOutsideLineNumber,
|
||||||
|
HeaderOutsideLineNumberText
|
||||||
|
]
|
||||||
|
};
|
||||||
|
alreadyConverted.push(HeaderOutsideLineNumberColumns);
|
||||||
|
} else {
|
||||||
currentParagraph = create("text");
|
currentParagraph = create("text");
|
||||||
currentParagraph.marginBottom = 4;
|
currentParagraph.marginBottom = 4;
|
||||||
currentParagraph.marginTop = 10;
|
currentParagraph.marginTop = 10;
|
||||||
/* falls through */
|
|
||||||
case "a":
|
|
||||||
currentParagraph = parseChildren(alreadyConverted, element, currentParagraph, styles.concat(elementStyles[nodeName]), diff_mode);
|
currentParagraph = parseChildren(alreadyConverted, element, currentParagraph, styles.concat(elementStyles[nodeName]), diff_mode);
|
||||||
alreadyConverted.push(currentParagraph);
|
alreadyConverted.push(currentParagraph);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
case "a":
|
||||||
case "b":
|
case "b":
|
||||||
case "strong":
|
case "strong":
|
||||||
case "u":
|
case "u":
|
||||||
|
Loading…
Reference in New Issue
Block a user