Only write newlines if not present
1.3.1