We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c109627 + 0a472d0 commit 13948a1Copy full SHA for 13948a1
textile/core.py
@@ -436,7 +436,11 @@ def hasRawText(self, text):
436
True
437
438
"""
439
- 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
440
+ # important thing to note here is that the pre must occur before the
441
+ # p or else the regex module doesn't properly match pre-s. It only
442
+ # matches the p in pre.
443
+ r = re.compile(r'<(pre|p|blockquote|div|form|table|ul|ol|dl|h[1-6])[^>]*?>.*</\1>',
444
re.S).sub('', text.strip()).strip()
445
r = re.compile(r'<(hr|br)[^>]*?/>').sub('', r)
446
return '' != r
textile/version.py
@@ -1 +1 @@
1
-VERSION = '2.2.1'
+VERSION = '2.2.2'
0 commit comments