mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Let's be more ASCII.
This commit is contained in:
parent
032fbe4ae2
commit
e98daace4c
@ -62,7 +62,8 @@ def normalizeWhitespace(s):
|
|||||||
|
|
||||||
class HtmlToText(sgmllib.SGMLParser):
|
class HtmlToText(sgmllib.SGMLParser):
|
||||||
"""Taken from some eff-bot code on c.l.p."""
|
"""Taken from some eff-bot code on c.l.p."""
|
||||||
entitydefs = htmlentitydefs.entitydefs
|
entitydefs = htmlentitydefs.entitydefs.copy()
|
||||||
|
entitydefs['nbsp'] = ' '
|
||||||
def __init__(self, tagReplace=' '):
|
def __init__(self, tagReplace=' '):
|
||||||
self.data = []
|
self.data = []
|
||||||
self.tagReplace = tagReplace
|
self.tagReplace = tagReplace
|
||||||
|
Loading…
Reference in New Issue
Block a user