Fix preserve_trailing_newlines (broken by 7f5080f64ab4a82648cb746990587c1aaff3f61d )
Fix preserve_trailing_newlines (broken by 7f5080f64ab4a82648cb746990587c1aaff3f61d )

Fix for one half of hte bug reported in #12198

thaim/ansible,thaim/ansible