saltstack/salt — pull request #7494 by s0undt3ch (2013-09-27 22:11:17+00:00)
Title: Make sure there's a line break before writing new key

* Add test case which verifies the occurrence of #7409.
* Make sure there's a line break before writing new key. Fixes #7409.