pdf w.o linen numbers and change rec. (fixes #2962)

This commit is contained in:
Sean Engelhardt 2017-02-15 14:23:28 +01:00
parent 802e253621
commit 4eefde839b

View File

@ -257,18 +257,8 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf'])
// motion text (with line-numbers) // motion text (with line-numbers)
var motionText = function() { var motionText = function() {
if ($scope.lineNumberMode == "inline" || $scope.lineNumberMode == "outside") { var motionTextContent = motion.getTextByMode($scope.viewChangeRecommendations.mode, $scope.version);
/* in order to distinguish between the line-number-types we need to pass the scope return converter.convertHTML(motionTextContent, $scope.lineNumberMode);
* 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);
}
}; };
// motion reason heading // motion reason heading