Skip to content

Commit baf647c

Browse files
committed
chore: enable automatic trimming of whitespace in Markdown files
I tried finding why this was disabled to begin with; however, this predates the project, and I am not sure the origin. My guess is that this stems from the Markdown specification allowing two spaces to force a hard line break. By trimming trailing whitespace, that could mean that Markdown formatting is affected. However, we do not use two spaces to force linebreaks. Instead, we use blank lines. As such, I think we can enable automatic whitespace trimming.
1 parent ccbc33e commit baf647c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ indent_style = tab
121121
[*.{md,md.txt}]
122122
indent_style = space
123123
indent_size = 4
124-
trim_trailing_whitespace = false
124+
trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim.
125125
126126
# Set properties for `usage.txt` files:
127127
[usage.txt]

0 commit comments

Comments
 (0)