Hi All,
Okay, I tracked down the hang to the HTMLProcessor processHTML method that tries to "fix apostrophes in the wrong direction".
In this case it does this by running the following command:
Code:
CorrectText("Corrected apostrophes in wrong direction", r'[ ]?‘(?i)(\d\d|ad[n]{0,1}|app[yines]{0,5}|appen[eds]{\
0,2}|ard[er]{0,2}|arf|alf|ang|as|at|av[ein]{0,3}|bout|bye|cause|cept[ing]{0,3}|copter[s]{0,1}|cos|cross|cuz|couse|e[emr]{0,1}|e\
ll|elp[edling]{0,5}|ere[abouts]{0,5}|eard|f|fraid|fore|id|igh[er]{0,2}|ighness|im|is|isself|gainst|kay|less|mongst| n|nd|neath|\
nough|nother|nuff|o[o]{0,1}|ood|ome|ow|op[eding]{0,3}|oney|orse[flesh]{0,5}|ouse[ds]{0,1}|pon|puter[edrs]{0,2}|round|scuse[ds]{\
0,1}|spect[sed]{0,2}|scaped|sides|tween|special[ly]{0,2}|stead|t|taint|til|tis|twas|twere|twould|twil l|ud|un|urt|vise)(\W?)', \
r' ’\1\2')
I am not sure why this hangs, but commenting this line out lets everything proceed as normal.
I think we really need to get the author of this plugin involved to track this one down.
In case anyone is interested, CorrectText is basically doing the following:
newHtml, replacements = re.subn(pattern, replacement, html)
but this is actually hanging so my guess is unbalanced single quotes of some sort but that is a whopper of a regular expression.