Skip to content

Commit 597ed8d

Browse files
committed
add pypy to travis testing, and document the reasoning behind the previous changeset.
1 parent a12165a commit 597ed8d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ python:
55
- "3.2"
66
- "3.3"
77
- "3.4"
8+
- "pypy"
89
# command to install dependencies
910
install:
1011
- pip install -r requirements.txt
1112
- python setup.py -q install
13+
- if [[ ! $TRAVIS_PYTHON_VERSION == pypy ]] ; then pip install regex; fi
1214
# command to run tests
1315
script: nosetests

textile/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,10 @@ def hasRawText(self, text):
437437
True
438438
439439
"""
440+
# The php version has orders the below list of tags differently. The
441+
# important thing to note here is that the pre must occur before the
442+
# p or else the regex module doesn't properly match pre-s. It only
443+
# matches the p in pre.
440444
r = re.compile(r'<(pre|p|blockquote|div|form|table|ul|ol|dl|h[1-6])[^>]*?>.*</\1>',
441445
re.S).sub('', text.strip()).strip()
442446
r = re.compile(r'<(hr|br)[^>]*?/>').sub('', r)

0 commit comments

Comments
 (0)