Do not ensure a trailing newline when using contents_pillar.
Merge pull request #11796 from jkoelndorfer/develop

Do not ensure a trailing newline when using contents_pillar