mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-08-03 11:07:00 -04:00
(helper) ignore last trailing line for string blocks
This commit is contained in:
parent
500dd5c04f
commit
c61076ad6b
@ -220,6 +220,9 @@ class Parser {
|
||||
return false;
|
||||
}
|
||||
const currentLine = this.lines[this.currentLineNumber];
|
||||
if (this.currentLineNumber === this.lines.length - 1) {
|
||||
return currentLine.trim().length !== 0;
|
||||
}
|
||||
return currentLine.startsWith(' '.repeat(4 * this.currentIndent)) || currentLine.trim().length === 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user