diff --git a/js/moz-parser.js b/js/moz-parser.js index d79c4789..8d6d2a31 100644 --- a/js/moz-parser.js +++ b/js/moz-parser.js @@ -22,7 +22,7 @@ function parseMozFormat({code, styleId}) { const sectionStack = [{code: '', start: 0}]; const errors = []; const sections = []; - const mozStyle = code; + const mozStyle = code.replace(/\r\n?/g, '\n'); // same as parserlib.StringReader parser.addListener('startdocument', e => { const lastSection = sectionStack[sectionStack.length - 1];