RedCloth to_html strange behaviour

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
=> “

a babagalamaga

But in irb - everything is ok:

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

a baba gala maga

Can anyone tell me what is the problem here ?
thanks.

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:

=> “

a babagalamaga


I do things for love or money

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

Yes , thank you guys , 3.0.3 works perfect ))

Thank you all guys , 3.0.3 work perfect ))