Fix bug in folding.
This commit is contained in:
parent
ef245de77e
commit
95f21d0251
|
@ -100,7 +100,7 @@ export default class FoldingRangeContext {
|
||||||
// Process block.
|
// Process block.
|
||||||
if (line.startsWith('@end ')) {
|
if (line.startsWith('@end ')) {
|
||||||
if (verbatim) continue;
|
if (verbatim) continue;
|
||||||
const name = line.substring(5);
|
const name = line.substring(5).trimRight();
|
||||||
name === 'verbatim' && (verbatim = true);
|
name === 'verbatim' && (verbatim = true);
|
||||||
closingBlocks.push({ name: name, line: idx });
|
closingBlocks.push({ name: name, line: idx });
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue