Package: raggle
Version: 0.4.4-3
Tags: patch
Raggle does not display RSS descriptions which contain tables in a readable
way. It simply ignores the <tr> or <td> tags.
One quick fix for this is to use the dump feature of a text browser. The
attached patch use elinks for that.
Thanks,
Bernhard Kauer
--- raggle-0.4.4.orig/raggle
+++ raggle-0.4.4/raggle
@@ -817,8 +825,16 @@
# HTML::render_html('<br/><br/>test') #=> "\n\ntest"
#
def self.render_html(source, width=72)
- r = Renderer.new(source, width)
- r.rendered_text
+ cmd = 'elinks -dump -dump-width %d'%(width)
+ prog = IO::popen(cmd, 'w+')
+ prog.puts source
+ prog.close_write
+ tmp = prog.read
+ if tmp
+ tmp
+ else
+ ""
+ end
end
#