Ticket #55 (closed defect: wontfix)

Opened 3 years ago

Last modified 2 years ago

Trailing double spaces at the end of a paragraph add an (extra) BR

Reported by: deveiant Owned by: deveiant
Milestone: Bugfixes Component: MarkdownSyntax
Version: 2.0.0 Severity: normal
Keywords: newline break trailing space Cc: matt@…

Description

(Via Matt Neuberg in  333377):

BlueCloth.new("I'm testing  ").to_html
#=> =====
#<p>I'm testing<br/>
#</p>

That <br/> is functionally significant (it causes extra vertical whitespace), and Perl Markdown does not generate it. BlueCloth is apparently treating the extra spaces at the end of the input string as somehow significant.

Change History

comment:1 Changed 3 years ago by deveiant

  • Milestone changed from BlueCloth 2.0.0 to BlueCloth 2.0.1

comment:2 Changed 2 years ago by deveiant

  • Status changed from new to closed
  • Resolution set to wontfix

Since BlueCloth 2 is based on Discount, and this behavior is the same as Discount's, I'm not going to deviate from the Discount behavior. It's easily avoided (just #strip your strings before transforming them).

Note: See TracTickets for help on using tickets.