Ticket #3603 (new defect)

Opened 2 years ago

Last modified 1 year ago

end-of-comment markers converted to em-dash

Reported by: nickshanks Assigned to: anonymous
Priority: normal Milestone: 2.9
Component: General Version: 2.1
Severity: normal Keywords: needs-patch
Cc:

Description

Enter the following in a new post:

string1 <!-- string2 <ol/> --> string3

You will get the output:

<p>string1 <!-- string2</p> <ol/> &#8211;> string3</p>

I don't know if other block-level elements suffer this same fate, but this is not even well-formed output!

Attachments

3603.diff (1.0 kB) - added by Nazgul on 02/24/07 01:54:00.

Change History

01/17/07 14:51:29 changed by nickshanks

Enter the following in a new post:

{{{string1 <!-- string2 <ol/> --> string3}}}

You will get the output:

{{{<p>string1 <!-- string2</p> <ol/> &#8211;> string3</p>}}}

I don't know if other block-level elements suffer this same fate, but this is not even well-formed output! }}}

01/17/07 14:52:19 changed by nickshanks

trac is broken. i give up :P

01/17/07 17:59:38 changed by foolswisdom

  • summary changed from end-of-comment markers converted to em-dash to end-of-comment markers converted to em-dash.
  • milestone changed from 2.2 to 2.1.

Confirmed bug
ENV: 2.1-beta r44759

Seems to gooble the -- whenever there is an html tag in the comment.

Setting milestone as 2.1 as it seems better to disable em-dashing then have this behavior.

01/24/07 03:49:27 changed by foolswisdom

  • milestone changed from 2.1 to 2.2.

02/24/07 01:54:00 changed by Nazgul

  • attachment 3603.diff added.

02/24/07 01:54:21 changed by Nazgul

  • keywords set to has-patch.

03/27/07 23:24:55 changed by foolswisdom

  • milestone changed from 2.2 to 2.3.

09/13/07 21:46:59 changed by Nazgul

  • milestone changed from 2.3 to 2.4.

09/25/07 17:12:16 changed by Nazgul

  • keywords changed from has-patch to needs-patch.

Did some more testing. Although my patch fixes the problem it introduces others, so please ignore it.

Also closed #5073 as a duplicate of this bug.