Generate config without trailing whitespace