From: Brian Candler Date: 2010-01-08T19:58:08+09:00 Subject: Re: Stopping String Escaping. Here's the kind of standalone test I was thinking of. ----- 8< ------------------------------------------------- require 'rubygems' require 'uv' require 'redcloth' snip = DATA.read code = Uv.parse(snip, 'xhtml', 'ruby', false, 'twilight') code.insert(0, "") code.insert(code.length, "") puts RedCloth.new(code).to_html __END__ puts "Hello world!\n" puts "Hello\\one backslash" ----- 8< ------------------------------------------------- And for me the output it gives is:
puts "Hello world!\n"
puts "Hello\\one backslash"
This looks correct to me. So can you provide an example where it fails? Otherwise you need to look elsewhere in your application to see if you're providing the wrong input into Uv, or you're handling the output wrongly. Or maybe you have an old gem with a bug which has since been fixed. I'm using: ultraviolet (0.10.2) RedCloth (4.2.2) -- Posted via http://www.ruby-forum.com/.