From: michael.c.morin@... Date: 2008-06-29T04:52:31+09:00 Subject: Re: RedCloth: table with empty value On Jun 27, 7:31 pm, Rodrigo Bermejo wrote: > Hello List /. > > I am trying to build a html table from a string using RedCloth. > My table should show some empty values > > > require 'redcloth' > table = RedCloth.new("|a|b|c|d|\n|A||c|d|").to_html > puts table > > produces: > >                 >                         >                         >                         >                         >                 >                 >                         >                         >                         >                 >
abcd
Acd
> > Do you know how can I represent an empty value in a table ? > Thank you /. > -- > Posted viahttp://www.ruby-forum.com/. Force empty cells to span 1 column with \1. In my test the cell contains a space, if that's "empty" enough. puts RedCloth.new("|a|b|c|d|\1|A||c|d|").to_html -- Michael Morin Guide to Ruby http://ruby.about.com/ Become an About.com Guide: beaguide.about.com About.com is part of the New York Times Company