Skip to content

Commit 6694c24

Browse files
committed
this ought to fix #48. 🤞
1 parent e38b1bb commit 6694c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

textile/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def list_type(list_string):
111111
def normalize_newlines(string):
112112
out = string.strip()
113113
out = re.sub(r'\r\n?', '\n', out)
114-
out = re.sub(r'^[ \t]*\n', '\n', out, flags=re.M)
114+
out = re.compile(r'^[ \t]*\n', flags=re.M).sub('\n', out)
115115
out = re.sub(r'"$', '" ', out)
116116
return out
117117

0 commit comments

Comments
 (0)