Correct template and add gitattributes

Fix the baked output on WIN.
Without the gitattributes file the output is scrambled, as different types of newline in the same document mess it up.