Actually that's exactly what we test, that trailing newlines will not be inserted in the final product :)