diff --git a/openslides/core/static/js/core/docx.js b/openslides/core/static/js/core/docx.js index 7ec74b3bd..b8ea408d3 100644 --- a/openslides/core/static/js/core/docx.js +++ b/openslides/core/static/js/core/docx.js @@ -33,7 +33,7 @@ angular.module('OpenSlidesApp.core.docx', []) tagStack.pop(); // Special: end paragraphs - if (tag.startsWith('/p')) { + if (tag.indexOf('/p') === 0) { docx += ''; inParagraph = false; } diff --git a/openslides/motions/static/js/motions/docx.js b/openslides/motions/static/js/motions/docx.js index 46b2803b9..c37367287 100644 --- a/openslides/motions/static/js/motions/docx.js +++ b/openslides/motions/static/js/motions/docx.js @@ -17,11 +17,6 @@ angular.module('OpenSlidesApp.motions.docx', ['OpenSlidesApp.core.docx']) function ($http, $q, operator, Config, Category, gettextCatalog, FileSaver, lineNumberingService, Html2DocxConverter) { var PAGEBREAK = ''; - /*var TAGS_NO_PARAM = ['b', 'strong', 'em', 'i']; - - var images; - var relationships; - var contentTypes; */ var converter;