build: Fix .editorconfig to allow spaces in markdown files

When working on patch Ib90c74de1a153b6a01c3 I found that when using
Atom or Sublime with editorconfig enabled, a line break after
`* foo\n  bar` in a markdown file would often produce a tab instead
of two spaces for the third line.

Change-Id: I0ace4e675a20020a362ac3f29f8c1d8f61a99e1c
This commit is contained in:
Timo Tijhof 2021-04-29 23:54:11 +01:00
parent a368468fc1
commit fc7e0717ab

View file

@ -9,10 +9,14 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# Ensure text editors don't turn leading spaces into tabs,
# e.g. in multi-line bullet list items
[*.md]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2
# Tabs may not be valid YAML
# @see https://yaml.org/spec/1.2/spec.html#id2777534
[*.{yml,yaml}]
indent_style = space
indent_size = 2