From 95f21d02519c72f7e4139139c3056b98150ce91a Mon Sep 17 00:00:00 2001 From: CismonX Date: Fri, 13 Nov 2020 19:02:12 +0800 Subject: [PATCH] Fix bug in folding. --- src/contexts/folding_range.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contexts/folding_range.ts b/src/contexts/folding_range.ts index 93e1169..1b19baf 100644 --- a/src/contexts/folding_range.ts +++ b/src/contexts/folding_range.ts @@ -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;