We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63adf01 commit aafb74eCopy full SHA for aafb74e
language/lexer/lexer.go
@@ -427,10 +427,10 @@ func blockStringValue(in string) string {
427
428
// Remove leading blank lines.
429
for {
430
- if len(lines) == 1 {
+ if isBlank := lineIsBlank(lines[0]); !isBlank {
431
break
432
}
433
- if isBlank := lineIsBlank(lines[0]); !isBlank {
+ if len(lines) == 1 {
434
435
436
lines = lines[1:]
@@ -442,6 +442,9 @@ func blockStringValue(in string) string {
442
if isBlank := lineIsBlank(lines[i]); !isBlank {
443
444
445
446
+ break
447
+ }
448
lines = append(lines[:i], lines[i+1:]...)
449
450
0 commit comments