Trailing newline to =input is written only when needed (shouldn't be)