Hi I''m parsing user''s input with RedCloth library. But it removes all spaces between elements, rounded by "*" , "_" , also between these elements and normal text. Example :>> ./script/consoleLoading development environment.>> RedCloth.new("a baba *gala* _maga_").to_html=> "<p>a baba<strong>gala</strong><em>maga</em></p>" But in irb - everything is ok: irb(main):003:0> RedCloth.new("a baba *gala* _maga_").to_html => "<p>a baba <strong>gala</strong> <em>maga</em></p>" Can anyone tell me what is the problem here ? thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
which redcloth are you using? I know there are strange problems with paragraphs and hard_breaks in 3.0.4: http://wiki.rubyonrails.org/rails/pages/RedCloth Roman Semenenko wrote:> Hi > > I''m parsing user''s input with RedCloth library. > But it removes all spaces between elements, rounded by "*" , "_" , also > between these elements and normal text. > > Example : >>> ./script/console > Loading development environment. >>> RedCloth.new("a baba *gala* _maga_").to_html > => "<p>a baba<strong>gala</strong><em>maga</em></p>" > > But in irb - everything is ok: > > irb(main):003:0> RedCloth.new("a baba *gala* _maga_").to_html > => "<p>a baba <strong>gala</strong> <em>maga</em></p>" > > Can anyone tell me what is the problem here ? > thanks. > > > >-- I do things for love or money --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Roman, I read somewhere that 3.0.4. was buggy, and downgrading to version 3.0.3. of the gem solved my textile-related problems. Alain --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thank you all guys , 3.0.3 work perfect )) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yes , thank you guys , 3.0.3 works perfect )) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---