Skip to content

Commit

Permalink
Merge branch 'release/2.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
ikirudennis committed Jan 30, 2015
2 parents c109627 + 0a472d0 commit 13948a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion textile/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,11 @@ def hasRawText(self, text):
True
"""
r = re.compile(r'<(p|blockquote|div|form|table|ul|ol|dl|pre|h\d)[^>]*?>.*</\1>',
# The php version has orders the below list of tags differently. The
# important thing to note here is that the pre must occur before the
# p or else the regex module doesn't properly match pre-s. It only
# matches the p in pre.
r = re.compile(r'<(pre|p|blockquote|div|form|table|ul|ol|dl|h[1-6])[^>]*?>.*</\1>',
re.S).sub('', text.strip()).strip()
r = re.compile(r'<(hr|br)[^>]*?/>').sub('', r)
return '' != r
Expand Down
2 changes: 1 addition & 1 deletion textile/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '2.2.1'
VERSION = '2.2.2'

0 comments on commit 13948a1

Please sign in to comment.