From 4eefde839b6ae20c9ddde35b90801e294e0b12d2 Mon Sep 17 00:00:00 2001 From: Sean Engelhardt Date: Wed, 15 Feb 2017 14:23:28 +0100 Subject: [PATCH] pdf w.o linen numbers and change rec. (fixes #2962) --- openslides/motions/static/js/motions/pdf.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/openslides/motions/static/js/motions/pdf.js b/openslides/motions/static/js/motions/pdf.js index 31ed30857..b99ff30c1 100644 --- a/openslides/motions/static/js/motions/pdf.js +++ b/openslides/motions/static/js/motions/pdf.js @@ -257,18 +257,8 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf']) // motion text (with line-numbers) var motionText = function() { - if ($scope.lineNumberMode == "inline" || $scope.lineNumberMode == "outside") { - /* in order to distinguish between the line-number-types we need to pass the scope - * to the convertHTML function. - * We should avoid this, since this completly breaks compatibilty for every - * other project that might want to use this HTML to PDF parser. - * https://github.com/OpenSlides/OpenSlides/issues/2361 - */ - var text = motion.getTextByMode($scope.viewChangeRecommendations.mode, $scope.version); - return converter.convertHTML(text, $scope.lineNumberMode); - } else { - return converter.convertHTML(motion.getText($scope.version), $scope.lineNumberMode); - } + var motionTextContent = motion.getTextByMode($scope.viewChangeRecommendations.mode, $scope.version); + return converter.convertHTML(motionTextContent, $scope.lineNumberMode); }; // motion reason heading