Page MenuHomePhabricator

Line breaks introduced when nesting nowiki within code tags.
Closed, DeclinedPublic

Description

Author: xtina.schelin+mwbug

Description:
Steps:

  • Edit or create a page.
  • Enter a line like this:

<code><nowiki>Test string.</pre></code>

  • Save the page.
  • Edit the page again.

Bug:

Page now looks like this:

<code>
<nowiki>Test string.</pre> </code>

Each subsequent edit/save adds a new line between the opening code and nowiki tags:

<code>

<nowiki>Test string.</pre></code>


Version: 1.15.x
Severity: minor

Details

Reference
bz28087

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:36 PM
bzimport set Reference to bz28087.
bzimport added a subscriber: Unknown Object (MLST).

EN.WP.ST47 wrote:

I was unable to reproduce this on 1.17 with either nowiki /or/ pre inside code, or with the mismatched tags from your example. Worksforme.