From 77ec2e00b194a40eed527f65a72d7645e63f3fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Ho=CC=88=C3=9Fl?= Date: Tue, 30 Jan 2018 11:25:43 +0100 Subject: [PATCH] Don't show BR-tags in PDF when line number mode is set to none --- openslides/core/static/js/core/pdf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openslides/core/static/js/core/pdf.js b/openslides/core/static/js/core/pdf.js index 53a82f0a0..2ff5b8498 100644 --- a/openslides/core/static/js/core/pdf.js +++ b/openslides/core/static/js/core/pdf.js @@ -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;