#169 open
Greg Moreno

Duplicate rendering with 2 dots, a space, and 2 newlines at the end

Reported by Greg Moreno | September 8th, 2009 @ 05:49 PM

>> RedCloth::VERSION
=> 4.2.2

>> RedCloth.new("g.. x\n\n").to_html
=> "<p>g.. x</p>\n<p>g.. x</p>"

But if you use only 1 dot (or 3 or more), it works fine:

>> RedCloth.new("g. x\n\n").to_html
=> "<p>g. x</p>"

>> RedCloth.new("g... x\n\n").to_html
=> "<p>g&#8230; x</p>"

Works if only 1 newline at the end:

>> RedCloth.new("g.. x\n").to_html
=> "<p>g.. x</p>"

Works if there's no space between the dots:

>> RedCloth.new("g..x\n\n").to_html
=> "<p>g..x</p>"

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

People watching this ticket

Referenced by

Pages