allura
修訂 | 9cf8da72e11c90128b5bbe5b84122253067c8a35 (tree) |
---|---|
時間 | 2012-06-02 01:12:15 |
作者 | bolkimen <bolkimen@yaho...> |
Commiter | Cory Johns |
[#4254] ticket:64 fix line wrap
@@ -17,6 +17,7 @@ from forgeblog import version | ||
17 | 17 | from forgeblog.main import ForgeBlogApp |
18 | 18 | from allura.lib import exceptions |
19 | 19 | |
20 | +html2text.BODY_WIDTH = 0 | |
20 | 21 | |
21 | 22 | class MDHTMLParser(HTMLParser): |
22 | 23 | def __init__(self): |
@@ -181,7 +182,6 @@ class RssFeedsCommand(base.Command): | ||
181 | 182 | parser.feed(content) |
182 | 183 | parser.close() |
183 | 184 | content = html2text.html2text(parser.result_doc, e.link) |
184 | - #print content | |
185 | 185 | |
186 | 186 | updated = datetime.fromtimestamp(mktime(e.updated_parsed)) |
187 | 187 |
@@ -196,8 +196,6 @@ class RssFeedsCommand(base.Command): | ||
196 | 196 | post.make_slug(source=feed_url) |
197 | 197 | post.commit() |
198 | 198 | |
199 | - # TODO remove me | |
200 | - break | |
201 | 199 | session(BM.BlogPost).flush() |
202 | 200 | |
203 | 201 | # paster pull-rss-feeds development.ini -a 4facfec6610b271748000005 |