From 2c2fbd95094d5d1f02112bb62290ed5e22136c05 Mon Sep 17 00:00:00 2001 From: "Pavel A." Date: Thu, 15 Jan 2015 03:09:09 +0200 Subject: [PATCH] Added markdown settings in editorconfig in .md don't strip trailing whitespace --- .editorconfig | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.editorconfig b/.editorconfig index fdce3a8..de5d5ce 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,32 +1,30 @@ -; +; Keep this consistent with .gitattributes ; http://editorconfig.org/#supported-properties + root = true ; top-most EditorConfig file [*] end_of_line = lf insert_final_newline = false -; 4 space indentation -[*.c] -charset = latin1 -indent_style = space -indent_size = 4 - -[*.h] -charset = latin1 -indent_style = space -indent_size = 4 +; Markdown: KEEP trailing whitespace! +[*.{md,markdown}] +trim_trailing_whitespace = false +end_of_line = lf +charset = utf-8 -[*.cpp] +; C,C++: 4 space indentation +[*.{c,h,cpp}] charset = latin1 indent_style = space indent_size = 4 +trim_trailing_whitespace = true +;insert_final_newline = true [*.txt] indent_style = tab indent_size = 8 end_of_line = crlf -;insert_final_newline = false [*.bat] end_of_line = crlf -- 2.25.1