diff --git a/.editorconfig b/.editorconfig index 098e8f2..137e978 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,6 +12,10 @@ charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true +# Do not trim trailing whitespace on diff files as it can be used for alignment +[*.diff] +trim_trailing_whitespace = false + # Do not trim trailing whitespace on Markdown files as double space can be used # for a newline [*.md]