mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-03 00:41:15 -05:00
Wikifetch: also strip newlines from regular paragraphs
Example of problem article: https://en.wikipedia.org/wiki/2BOT_Physical_Modeling_Technologies
This commit is contained in:
parent
af6a4d5314
commit
c50c50b1cb
@ -198,6 +198,8 @@ class Wikifetch(callbacks.Plugin):
|
||||
b_tag.text = "%s" % (b_tag.text or '')
|
||||
p = p.text_content()
|
||||
p = p.replace('', '\x02')
|
||||
# Get rid of newlines, etc., that can corrupt the output.
|
||||
p = utils.str.normalizeWhitespace(p)
|
||||
p = p.strip()
|
||||
if sys.version_info[0] < 3:
|
||||
if isinstance(p, unicode):
|
||||
|
Loading…
x
Reference in New Issue
Block a user