Grr there's something messing with $/ somewhere, and I moved the
localization to a newline inside the if by mistake