allura
リビジョン | 355f7154d8430758e9aef19cbdc57678c74b493f (tree) |
---|---|
日時 | 2010-06-12 05:10:40 |
作者 | Rick Copeland <rcopeland@geek...> |
コミッター | Rick Copeland |
Don't encode unicode before returning it to genshi; this confuses the $%# out of genshi.
@@ -55,7 +55,7 @@ class RelativeLinkRewriter(markdown.postprocessors.Postprocessor): | ||
55 | 55 | rewrite(link, 'href') |
56 | 56 | for link in soup.findAll('img'): |
57 | 57 | rewrite(link, 'src') |
58 | - return unicode(soup).encode('utf-8') | |
58 | + return unicode(soup) | |
59 | 59 | |
60 | 60 | class LineOrientedTreeProcessor(markdown.treeprocessors.Treeprocessor): |
61 | 61 | '''Once MD is satisfied with the etree, this runs to replace \n with <br/> |