We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e38b1bb commit 6694c24Copy full SHA for 6694c24
1 file changed
textile/utils.py
@@ -111,7 +111,7 @@ def list_type(list_string):
111
def normalize_newlines(string):
112
out = string.strip()
113
out = re.sub(r'\r\n?', '\n', out)
114
- out = re.sub(r'^[ \t]*\n', '\n', out, flags=re.M)
+ out = re.compile(r'^[ \t]*\n', flags=re.M).sub('\n', out)
115
out = re.sub(r'"$', '" ', out)
116
return out
117
0 commit comments