Fix line number for runtime exceptions

Remove all newlines in generated code, so runtime exceptions have correct line numbers