#63 ✓ resolved
Steve Purcell

Another subtle link-inside-quotes misbehaviour

Reported by Steve Purcell | October 1st, 2008 @ 03:57 AM | in 4.0.4

Hi Jason,

Here's another subtle case where links inside quotes aren't quite rendered correctly. The ” before "said Gore" comes out as " with the current RedCloth code from github.


diff --git a/test/links.yml b/test/links.yml
index 122e1ed..417910f 100644
--- a/test/links.yml
+++ b/test/links.yml
@@ -251,3 +251,9 @@ in: |-
 html: |-
   <p>&#8220;Here is a <a href="http://redcloth.org/">link</a>.</p>
   <p>&#8220;I like links.&#8221;</p>
+---
+name: contained in para with multiple quotes
+in: |-
+  "My wife, Tipper, and I will donate 100% of the proceeds of the award to the "Alliance For Climate Protection":http://www.looktothestars.org/charity/638-alliance-for-climate-protection," said Gore in an email. "I am deeply honored to receive the Nobel Peace Prize."
+html: |-
+  <p>&#8220;My wife, Tipper, and I will donate 100% of the proceeds of the award to the <a href="http://www.looktothestars.org/charity/638-alliance-for-climate-protection">Alliance For Climate Protection</a>,&#8221; said Gore in an email. &#8220;I am deeply honored to receive the Nobel Peace Prize.&#8221;

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