Show More
@@ -83,6 +83,12 b' addlines(PyObject *self, PyObject *args)' | |||
|
83 | 83 | _fix_newline(hunk, a, b); |
|
84 | 84 | continue; |
|
85 | 85 | } |
|
86 | if (c == '\n') { | |
|
87 | /* Some patches may be missing the control char | |
|
88 | * on empty lines. Supply a leading space. */ | |
|
89 | Py_DECREF(x); | |
|
90 | x = PyString_FromString(" \n"); | |
|
91 | } | |
|
86 | 92 | PyList_Append(hunk, x); |
|
87 | 93 | if (c == '+') { |
|
88 | 94 | l = PyString_FromString(s + 1); |
General Comments 0
You need to be logged in to leave comments.
Login now