partially fixes #25: x at EOL does not delete newline in empty line