File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 - " 3.2"
66 - " 3.3"
77 - " 3.4"
8+ - " pypy"
89# command to install dependencies
910install :
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
1315script : nosetests
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments