leohemsted / smartypants.py

Translate plain ASCII punctuation characters into “smart” typographic punctuation HTML entities.
Other
21 stars 9 forks source link

Fix double closing quotes after an HTML block #9

Open vincentbernat opened 6 years ago

vincentbernat commented 6 years ago

The double closing quote happens to be at the beginning. If it is followed by a space, everything is OK, but if it is followed by a punctuation, we get the default opening quote instead. Fix that by using closing tag when there is punctuation.

This is not really generic because we do not want to break other cases, like quoting a punctuation character.

git1sal commented 1 year ago

Fix works for me. Would like to see this merged, but the module is apparently unmaintained, so...