Fix to handle extra #enddocregion tags
This commit is contained in:
parent
7349fad338
commit
4bc13ad1a6
|
@ -25,9 +25,11 @@ module.exports = function regionExtractor() {
|
||||||
lines[ix] = nullLine;
|
lines[ix] = nullLine;
|
||||||
docs.push(doc);
|
docs.push(doc);
|
||||||
} else if (hasEndRegionTag(line)) {
|
} else if (hasEndRegionTag(line)) {
|
||||||
lines[ix] = nullLine;
|
if (doc) {
|
||||||
doc.endIx = ix;
|
lines[ix] = nullLine;
|
||||||
doc = docStack.pop();
|
doc.endIx = ix;
|
||||||
|
doc = docStack.pop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue