Skip to content

Commit ee7bd6a

Browse files
committed
gratuitous re.sub
1 parent 816fa51 commit ee7bd6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

textile/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ def fTable(self, match):
344344
# versions differ) and then format the resulting string
345345
# accordingly: newline and tab between cols and a newline at
346346
# the end
347-
colgrp = re.sub(r"<\?xml version='1.0' encoding='UTF-8'\?>\n",
348-
'', colgrp)
347+
colgrp = colgrp.replace("<?xml version='1.0' "
348+
"encoding='UTF-8'?>\n", '')
349349
colgrp = '{0}\n'.format(colgrp.replace('><', '>\n\t<'))
350350

351351
# If the row has a newline in it, account for the missing

0 commit comments

Comments
 (0)