wiki.techinc.nl/.editorconfig
Timo Tijhof fc7e0717ab 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
2021-04-29 23:56:23 +01:00

22 lines
439 B
INI

root = true
[*]
indent_style = tab
indent_size = tab
tab_width = 4
end_of_line = lf
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]
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