Hi, I am using RedCloth (3.0.4). First using online text2html (http://www.textism.com/tools/textile/) , "123 456" returns <p>123<br />456</p> But by code: <code> require ''RedCloth'' puts RedCloth.new("123\n456").to_html </code> I got: <p>123 456</p> CR is not taken in consideration. Is there any parameter I am missing? Thank you for your help, Jean-Etienne -- Woa! Kft www.novAgora.hu "All you need in this life is ignorance and confidence; then success is sure.", Mark Twain
puts RedCloth.new("123\n456", [:hard_breaks]).to_html -Lucas http://rufy.com/ On Jun 14, 2006, at 10:21 AM, Jean-Etienne Durand wrote:> Hi, > > I am using RedCloth (3.0.4). > > First using online text2html (http://www.textism.com/tools/textile/) , > "123 > 456" > returns <p>123<br />456</p> > > But by code: > <code> > require ''RedCloth'' > puts RedCloth.new("123\n456").to_html > </code> > > I got: > <p>123 > 456</p> > > CR is not taken in consideration. Is there any parameter I am missing? > > Thank you for your help, > Jean-Etienne > -- > Woa! Kft www.novAgora.hu > > "All you need in this life is ignorance and confidence; then > success is > sure.", Mark Twain > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards
Thank you Lucas, By doing that, I have a problem with paragraphs. source: "description1 h3. BigTitle1 description2 h3. BigTitle2 description3 h3. BigTitle3 " 1. without hard_breaks: <p>description1</p> <h3>BigTitle1</h3> <p>description2</p> <h3>BigTitle2</h3> <p>description3</p> <h3>BigTitle3</h3> 2. with hard_breaks description1<br /> <h3>BigTitle1<br /> description2<br /> h3. BigTitle2<br /> description3<br /> h3. BigTitle3</h3> Any idea? Lucas Carlson wrote:> puts RedCloth.new("123\n456", [:hard_breaks]).to_html > > -Lucas > http://rufy.com/ > > > > On Jun 14, 2006, at 10:21 AM, Jean-Etienne Durand wrote: > > >> Hi, >> >> I am using RedCloth (3.0.4). >> >> First using online text2html (http://www.textism.com/tools/textile/) , >> "123 >> 456" >> returns <p>123<br />456</p> >> >> But by code: >> <code> >> require ''RedCloth'' >> puts RedCloth.new("123\n456").to_html >> </code> >> >> I got: >> <p>123 >> 456</p> >> >> CR is not taken in consideration. Is there any parameter I am missing? >> >> Thank you for your help, >> Jean-Etienne >> -- >> Woa! Kft www.novAgora.hu >> >> "All you need in this life is ignorance and confidence; then >> success is >> sure.", Mark Twain >> _______________________________________________ >> Redcloth-upwards mailing list >> Redcloth-upwards at rubyforge.org >> http://rubyforge.org/mailman/listinfo/redcloth-upwards >> > > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards > > >-- Woa! Kft www.novAgora.hu H-1243 Budapest Tel +36 30 252 04 04 Pf. 506 "All you need in this life is ignorance and confidence; then success is sure.", Mark Twain
I will add a unit test for this failure and see if I or others can fix it. -Lucas http://rufy.com/ On Jun 14, 2006, at 10:46 AM, Jean-Etienne Durand wrote:> Thank you Lucas, > > By doing that, I have a problem with paragraphs. > > source: > "description1 > > h3. BigTitle1 > > description2 > > h3. BigTitle2 > > description3 > > h3. BigTitle3 > " > > 1. without hard_breaks: > <p>description1</p> > > > <h3>BigTitle1</h3> > > > <p>description2</p> > > > <h3>BigTitle2</h3> > > > <p>description3</p> > > > <h3>BigTitle3</h3> > > 2. with hard_breaks > description1<br /> > <h3>BigTitle1<br /> > description2<br /> > h3. BigTitle2<br /> > description3<br /> > h3. BigTitle3</h3> > > Any idea? > > > Lucas Carlson wrote: >> puts RedCloth.new("123\n456", [:hard_breaks]).to_html >> >> -Lucas >> http://rufy.com/ >> >> >> >> On Jun 14, 2006, at 10:21 AM, Jean-Etienne Durand wrote: >> >> >>> Hi, >>> >>> I am using RedCloth (3.0.4). >>> >>> First using online text2html (http://www.textism.com/tools/ >>> textile/) , >>> "123 >>> 456" >>> returns <p>123<br />456</p> >>> >>> But by code: >>> <code> >>> require ''RedCloth'' >>> puts RedCloth.new("123\n456").to_html >>> </code> >>> >>> I got: >>> <p>123 >>> 456</p> >>> >>> CR is not taken in consideration. Is there any parameter I am >>> missing? >>> >>> Thank you for your help, >>> Jean-Etienne >>> -- >>> Woa! Kft www.novAgora.hu >>> >>> "All you need in this life is ignorance and confidence; then >>> success is >>> sure.", Mark Twain >>> _______________________________________________ >>> Redcloth-upwards mailing list >>> Redcloth-upwards at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/redcloth-upwards >>> >> >> _______________________________________________ >> Redcloth-upwards mailing list >> Redcloth-upwards at rubyforge.org >> http://rubyforge.org/mailman/listinfo/redcloth-upwards >> >> >> > > > -- > Woa! Kft www.novAgora.hu > H-1243 Budapest Tel +36 30 252 04 04 > Pf. 506 > > "All you need in this life is ignorance and confidence; then > success is sure.", Mark Twain > > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards
Lucas Carlson wrote:> I will add a unit test for this failure and see if I or others can > fix it.Can you also apply [1] while you are at it? Thanks, Vadim [1] http://rubyforge.org/pipermail/redcloth-upwards/2005-December/000023.html
I already did, and I fixed it too. -Lucas http://rufy.com/ On Jun 14, 2006, at 10:57 AM, Vadim Gritsenko wrote:> Lucas Carlson wrote: >> I will add a unit test for this failure and see if I or others can >> fix it. > > Can you also apply [1] while you are at it? Thanks, > > Vadim > > [1] http://rubyforge.org/pipermail/redcloth-upwards/2005-December/ > 000023.html > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards
Lucas Carlson wrote:> I already did, and I fixed it too.Sorry! I did not get response so assumed it was not applied :) Vadim> On Jun 14, 2006, at 10:57 AM, Vadim Gritsenko wrote: > >> Lucas Carlson wrote: >>> I will add a unit test for this failure and see if I or others can >>> fix it. >> Can you also apply [1] while you are at it? Thanks, >> >> Vadim >> >> [1] http://rubyforge.org/pipermail/redcloth-upwards/2005-December/ >> 000023.html
Thank you, But still, why is it working fine on http://www.textism.com/tools/textile/ ? Lucas Carlson wrote:> I will add a unit test for this failure and see if I or others can > fix it. > > -Lucas > http://rufy.com/ > > > > On Jun 14, 2006, at 10:46 AM, Jean-Etienne Durand wrote: > > >> Thank you Lucas, >> >> By doing that, I have a problem with paragraphs. >> >> source: >> "description1 >> >> h3. BigTitle1 >> >> description2 >> >> h3. BigTitle2 >> >> description3 >> >> h3. BigTitle3 >> " >> >> 1. without hard_breaks: >> <p>description1</p> >> >> >> <h3>BigTitle1</h3> >> >> >> <p>description2</p> >> >> >> <h3>BigTitle2</h3> >> >> >> <p>description3</p> >> >> >> <h3>BigTitle3</h3> >> >> 2. with hard_breaks >> description1<br /> >> <h3>BigTitle1<br /> >> description2<br /> >> h3. BigTitle2<br /> >> description3<br /> >> h3. BigTitle3</h3> >> >> Any idea? >> >> >> Lucas Carlson wrote: >> >>> puts RedCloth.new("123\n456", [:hard_breaks]).to_html >>> >>> -Lucas >>> http://rufy.com/ >>> >>> >>> >>> On Jun 14, 2006, at 10:21 AM, Jean-Etienne Durand wrote: >>> >>> >>> >>>> Hi, >>>> >>>> I am using RedCloth (3.0.4). >>>> >>>> First using online text2html (http://www.textism.com/tools/ >>>> textile/) , >>>> "123 >>>> 456" >>>> returns <p>123<br />456</p> >>>> >>>> But by code: >>>> <code> >>>> require ''RedCloth'' >>>> puts RedCloth.new("123\n456").to_html >>>> </code> >>>> >>>> I got: >>>> <p>123 >>>> 456</p> >>>> >>>> CR is not taken in consideration. Is there any parameter I am >>>> missing? >>>> >>>> Thank you for your help, >>>> Jean-Etienne >>>> -- >>>> Woa! Kft www.novAgora.hu >>>> >>>> "All you need in this life is ignorance and confidence; then >>>> success is >>>> sure.", Mark Twain >>>> _______________________________________________ >>>> Redcloth-upwards mailing list >>>> Redcloth-upwards at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/redcloth-upwards >>>> >>>> >>> _______________________________________________ >>> Redcloth-upwards mailing list >>> Redcloth-upwards at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/redcloth-upwards >>> >>> >>> >>> >> -- >> Woa! Kft www.novAgora.hu >> H-1243 Budapest Tel +36 30 252 04 04 >> Pf. 506 >> >> "All you need in this life is ignorance and confidence; then >> success is sure.", Mark Twain >> >> _______________________________________________ >> Redcloth-upwards mailing list >> Redcloth-upwards at rubyforge.org >> http://rubyforge.org/mailman/listinfo/redcloth-upwards >> > > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards > > >-- Woa! Kft www.novAgora.hu H-1243 Budapest Tel +36 30 252 04 04 Pf. 506 "All you need in this life is ignorance and confidence; then success is sure.", Mark Twain