generate conf without trailing whitespace, fixes #126, r=@twobraids
Merge pull request #127 from peterbe/generate-conf-without-trailing-whitespace-fixes-126

generate conf without trailing whitespace, fixes #126