Allow trailing spaces in md/rst files

pull/1747/head
Noah Gorny 2020-12-17 01:42:16 +02:00
parent 501b1ab3b5
commit 859038e58f
3 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,7 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
[*.{md,rst}]
trim_trailing_whitespace = false
[.git*]

4
.gitattributes vendored
View File

@ -1,5 +1,9 @@
*.sh text eol=lf
*.bash text eol=lf
# Docs allow trailing whitespaces
*.md whitespace=-blank-at-eol
*.rst whitespace=-blank-at-eol
# Windows files
*.bat text eol=crlf

View File

@ -9,6 +9,7 @@ repos:
rev: v2.3.0
hooks:
- id: trailing-whitespace
exclude: ".(md|rst)$"
- id: end-of-file-fixer
- id: check-merge-conflict
- id: mixed-line-ending