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