ariatemplates/ariatemplates — pull request #249 by jakub-g (2012-11-28 16:31:46+00:00)
Title: PR: Pre-commit hook misbehaves for UTF-8 / binary files -- refix

The previous commit ed322f3e52a7333fe5b30b2718d26d426a173b32 fixed a problem for UTF-8 files but introduced new issues -- for the files having no trailing newline and for binary files.

This commit addresses all those problems.