config: Replace Config._setup() with Config.setup_html2text()
authorW. Trevor King <wking@tremily.us>
Tue, 14 May 2013 08:38:07 +0000 (04:38 -0400)
committerW. Trevor King <wking@tremily.us>
Tue, 14 May 2013 11:02:46 +0000 (07:02 -0400)
commit6befcdf5000f2eed9382a79664d278fbfc09ad67
treeeb1cfa04d8280f8b660b3a06018e9dda792fee1a
parent64ade6dc410e49abd87dd80d2e785e9ab11690fc
config: Replace Config._setup() with Config.setup_html2text()

Since 7bbbf62 (Setup html2text in Config._setup(), 2012-10-04), the
html2text configuration options have only been referenced from
Config._setup(), and that method was never called.  With this commit,
we rename the method to setup_html2text(), and add a new
Feed._html2text() which invokes the setup before calling
html2text.html2text().

This caused a fair amount of churn in the expected test results, as
previously ignored default values for html2text kicked in.  I also
added a test exercising the non-default values (allthingsrss/3), and
it looks like everything works as expected.

Signed-off-by: W. Trevor King <wking@tremily.us>
CHANGELOG
rss2email/config.py
rss2email/feed.py
test/allthingsrss/1.expected
test/allthingsrss/2.expected
test/allthingsrss/3.config [new file with mode: 0644]
test/allthingsrss/3.expected [new file with mode: 0644]
test/disqus/1.expected
test/gmane/1.expected