Merge pull request #2446 from tsiegleauq/issue2441-LineNumberBlankText
PDF line numbers for new linenumbering.js (fixes #2441)
This commit is contained in:
commit
188f605973
@ -88,6 +88,9 @@ angular.module('OpenSlidesApp.motions.lineNumbering', [])
|
||||
service = this;
|
||||
var addLine = function (text, highlight) {
|
||||
var node;
|
||||
if (typeof highlight === 'undefined') {
|
||||
highlight = 0;
|
||||
}
|
||||
if (firstTextNode) {
|
||||
if (highlight == service._currentLineNumber - 1) {
|
||||
node = document.createElement('span');
|
||||
|
@ -21,7 +21,7 @@ angular.module('OpenSlidesApp.motions.site', ['OpenSlidesApp.motions', 'OpenSlid
|
||||
* other project that might want to use this HTML to PDF parser.
|
||||
* https://github.com/OpenSlides/OpenSlides/issues/2361
|
||||
*/
|
||||
return converter.convertHTML($scope.lineBrokenText, $scope);
|
||||
return converter.convertHTML(motion.getTextWithLineBreaks($scope.version), $scope);
|
||||
} else {
|
||||
return converter.convertHTML(motion.getText($scope.version), $scope);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user