Hi, using --- (3 dashes) at the end of a string that is textilized, results in a single hr tag without any text. This seems weird to me. Am I overlooking something?>> av = ActionView::Base.new >> av.textilize("sometext ---")=> "<hr />" Cheers, Jan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
What vesion of RedCloth do you have installed? I get the following...>> x = RedCloth.new( ''foobar ---'' )=> "foobar ---">> x.to_html=> "<p>foobar <del>-</del></p>" On Mon, Oct 6, 2008 at 10:02 AM, jan <janfiete-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi, > > using --- (3 dashes) at the end of a string that is textilized, > results in a single hr tag without any text. This seems weird to me. > Am I overlooking something? > >>> av = ActionView::Base.new >>> av.textilize("sometext ---") > => "<hr />" > > Cheers, > Jan > > > >-- Robby Russell Chief Evangelist, Partner PLANET ARGON, LLC design // development // hosting http://www.planetargon.com/ http://www.robbyonrails.com/ aim: planetargon +1 503 445 2457 +1 877 55 ARGON [toll free] +1 815 642 4068 [fax] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, thanks for your reply. I have RedCloth 4.0.4 installed. However, it was using an old version that is for some reason in the ruby 1.8 folder. /usr/lib/ruby/1.8/redcloth.rb that includes 3.0.99.0.svn.20060519! I removed the file redcloth.rb and now it works. But removing the file does not seem a very clean solution. If you have any suggestion about this, that would be great. Thanks and Cheers, Jan On Oct 7, 1:30 am, "Robby Russell" <ro...-/Lcn8Y7Ot69QmPsQ1CNsNQ@public.gmane.org> wrote:> What vesion of RedCloth do you have installed? > > I get the following... > > >> x = RedCloth.new( ''foobar ---'' ) > => "foobar ---" > >> x.to_html > > => "<p>foobar <del>-</del></p>" > > > > On Mon, Oct 6, 2008 at 10:02 AM, jan <janfi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > using --- (3 dashes) at the end of a string that is textilized, > > results in a single hr tag without any text. This seems weird to me. > > Am I overlooking something? > > >>> av = ActionView::Base.new > >>> av.textilize("sometext ---") > > => "<hr />" > > > Cheers, > > Jan > > -- > Robby Russell > Chief Evangelist, Partner > > PLANET ARGON, LLC > design // development // hosting > > http://www.planetargon.com/http://www.robbyonrails.com/ > aim: planetargon > > +1 503 445 2457 > +1 877 55 ARGON [toll free] > +1 815 642 4068 [fax]--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---