-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hola listeros,
Llevo unos días dándole vueltas a un problemilla que me ha surgido
con Redcloth y textilize.
Cuando intento parsear con esta clase un texto que esta en formato
textilize para pasarlo a html, me pega este error:
stack level too deep
usr/lib/ruby/1.8/redcloth.rb:988:in inline_textile_glyphs' /usr/lib/ruby/1.8/redcloth.rb:998:in
inline_textile_glyphs’
/usr/lib/ruby/1.8/redcloth.rb:988:in inline_textile_glyphs' /usr/lib/ruby/1.8/redcloth.rb:998:in
inline_textile_glyphs’
/usr/lib/ruby/1.8/redcloth.rb:988:in inline_textile_glyphs' /usr/lib/ruby/1.8/redcloth.rb:998:in
inline_textile_glyphs’
/usr/lib/ruby/1.8/redcloth.rb:988:in inline_textile_glyphs' /usr/lib/ruby/1.8/redcloth.rb:1051:in
inline’
/usr/lib/ruby/1.8/redcloth.rb:1050:in inline' /usr/lib/ruby/1.8/redcloth.rb:303:in
to_html’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/
text_helper.rb:90:in textilize' #{RAILS_ROOT}/app/views/shop/ver_coche.rhtml:128:in
_run_rhtml_shop_ver_coche’
/usr/bin/mongrel_rails:18
La petada es la misma si utilizo el helper textilize o invoco a la
clase Redcloth de la siguiente manera:
RedCloth.new( @coche.extras ).to_html
¿Estoy usando mal algo o es un bug de la libreria redcloth?
Lo raro es que solo peta en algunos textos no en todos, aunque no he
conseguido ver un patron claro en los textos que fallan.
Un saludo
Felipe T.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFXyUZ8APpiBcvFY0RAqv8AKDb0ckfnbP/wypztvM5gflSN7BS/QCfai7W
Gk1X906QpX9SRSQAc3eGWhc=
=l8ym
-----END PGP SIGNATURE-----