FIX: Typo prevented extraction of email signatures

This commit is contained in:
Gerhard Schlager 2018-03-06 11:34:47 +01:00
parent dc32ee5cbf
commit 832f0a9c4d

View File

@ -328,7 +328,7 @@ module Email
doc = Nokogiri::HTML.fragment(html)
# AppleMail is the worst. It adds 'AppleMailSignature' ids (!) to several div/p with no deterministic rules
# Our best guess is to elide whatever comes after that.
elided = doc.css("#AppleMailSignature:last-of_type ~ *").remove
elided = doc.css("#AppleMailSignature:last-of-type ~ *").remove
to_markdown(doc.to_html, elided.to_html)
end