Merge pull request #3309 from FinnStutzenstein/Issue3307

fix not supported 'startsWith' function in IE11 (fixes #3307)
This commit is contained in:
Norman Jäckel 2017-06-21 21:45:15 +02:00 committed by GitHub
commit e72af0101c
2 changed files with 1 additions and 6 deletions

View File

@ -33,7 +33,7 @@ angular.module('OpenSlidesApp.core.docx', [])
tagStack.pop();
// Special: end paragraphs
if (tag.startsWith('/p')) {
if (tag.indexOf('/p') === 0) {
docx += '</w:p>';
inParagraph = false;
}

View File

@ -17,11 +17,6 @@ angular.module('OpenSlidesApp.motions.docx', ['OpenSlidesApp.core.docx'])
function ($http, $q, operator, Config, Category, gettextCatalog, FileSaver, lineNumberingService, Html2DocxConverter) {
var PAGEBREAK = '<w:p><w:r><w:br w:type="page" /></w:r></w:p>';
/*var TAGS_NO_PARAM = ['b', 'strong', 'em', 'i'];
var images;
var relationships;
var contentTypes; */
var converter;