Fix bug in folding.

This commit is contained in:
CismonX 2020-11-13 19:02:12 +08:00
parent ef245de77e
commit 95f21d0251
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ export default class FoldingRangeContext {
// Process block.
if (line.startsWith('@end ')) {
if (verbatim) continue;
const name = line.substring(5);
const name = line.substring(5).trimRight();
name === 'verbatim' && (verbatim = true);
closingBlocks.push({ name: name, line: idx });
continue;