From d9e6e7ffa58bdd21cd9cef0d41802221a7b2fdc1 Mon Sep 17 00:00:00 2001 From: linquize Date: Sun, 18 Nov 2018 00:24:54 +0800 Subject: [PATCH] *.txt, *.tpl, *.htm, *.html, *.md should always use eol=lf (#2345) --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitattributes b/.gitattributes index f42d752c9..2e5077856 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,5 +10,10 @@ # go fmt will enforce this, but in case a user has not called "go fmt" allow GIT to catch this: *.go text eol=lf core.whitespace whitespace=indent-with-non-tab,trailing-space,tabwidth=4 +*.txt text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2 +*.tpl text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2 +*.htm text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2 +*.html text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2 +*.md text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2 *.yml text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2 .git* text eol=auto core.whitespace whitespace=trailing-space