RedCloth to_html strange behaviour


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 :

Loading development environment.“a baba gala maga”).to_html
=> “

a babagalamaga

But in irb - everything is ok:

irb(main):003:0>“a baba gala maga”).to_html
=> “

a baba gala maga

Can anyone tell me what is the problem here ?

which redcloth are you using?
I know there are strange problems with paragraphs and hard_breaks in

Roman Semenenko wrote:

=> “

a babagalamaga

I do things for love or money


I read somewhere that 3.0.4. was buggy, and downgrading to version
3.0.3. of the gem solved my textile-related problems.


Yes , thank you guys , 3.0.3 works perfect ))

Thank you all guys , 3.0.3 work perfect ))

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs