1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2026-04-19 19:10:47 +02:00

Decompose xenforo hidden blockquote notes

This commit is contained in:
David Lynch 2017-02-23 14:20:24 -06:00
parent 86e36715f1
commit 9e542c9018

View file

@ -125,9 +125,11 @@ class XenForo(Site):
if tag['style'] == 'color: transparent' and tag.text == 'TAB':
# Some stories fake paragraph indents like this. The output
# stylesheet will handle this just fine.
tag.extract()
tag.decompose()
else:
del(tag['style'])
for tag in post.find_all(class_='quoteExpand'):
tag.decompose()
# spoilers don't work well, so turn them into epub footnotes
for idx, spoiler in enumerate(post.find_all(class_='ToggleTriggerAnchor')):
spoiler_title = spoiler.find(class_='SpoilerTitle')