fix(format): leave a single blank line after the frontmatter #314
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!314
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/format-frontmatter-blank-lines"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Several blank lines right after the frontmatter came down to two instead of one: the frontmatter segment keeps the line break of its closing
---, so the body's own leading line breaks were already blank lines and the global "3+ line breaks → 2" rule left one too many.consecutiveBlankLines).formatter.test.ts(2, 3 and 4 blank lines, idempotence);patchchangeset.Found while testing
zed-gramby hand, but it is the formatter's behavior in every editor and ingram format. Once merged,maingoes intodev/1.6.