normalize linebreaks in parseMozFormat

This commit is contained in:
tophf 2020-11-24 20:53:11 +03:00
parent 7c2b46be83
commit a5848682b3

View File

@ -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];