normalize linebreaks in parseMozFormat
This commit is contained in:
parent
7c2b46be83
commit
a5848682b3
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue
Block a user