Don't show BR-tags in PDF when line number mode is set to none

This commit is contained in:
Tobias Hößl 2018-01-30 11:25:43 +01:00
parent ec2fcbdd73
commit 77ec2e00b1

View File

@ -797,9 +797,9 @@ angular.module('OpenSlidesApp.core.pdf', [])
var brParent = element.parentNode;
var brParentNodeName = brParent.nodeName;
//in case of inline-line-numbers and the os-line-break class ignore the break
if ((lineNumberMode == 'inline' &&
if (((lineNumberMode === 'inline' || lineNumberMode === 'none') &&
hasClass(element, 'os-line-break')) ||
(lineNumberMode == 'outside' &&
(lineNumberMode === 'outside' &&
hasClass(element, 'os-line-break') &&
hasClass(brParent, 'os-split-before'))) {
break;