rtomayko/rdiscount — Issue #57: Double Space for Line Break Breaks SmartyPants
Author: tylerhunt
Created: 2012-02-02 05:59:03+00:00
State: open

When a line that ends in a double space (to force a line break) also ends in a closing quotation mark, SmartyPants isn't converting the quotation mark like it should be.

> > RDiscount.new(%("one" \ntwo), :smart).to_html
> => "<p>&ldquo;one\\"<br/>\ntwo</p>\n"

Without the trailing double space it works fine, of course.

> > RDiscount.new(%("one"\ntwo), :smart).to_html
> => "<p>&ldquo;one&rdquo;\ntwo</p>\n"