Page MenuHomePhabricator

Bold text that includes line breaks creates incorrect rendering
Closed, DeclinedPublicFeature

Description

Author: schwenk

Description:
When adding Text to the Edit-Area with '''Bold
Text''' including a Newline in the Textarea formats all the Text after the Linebreak to the end of that Line as bold.

Try the attached Text.


Version: 1.21.x
Severity: enhancement
OS: Windows XP
Platform: PC

Details

Reference
bz18607

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:32 PM
bzimport set Reference to bz18607.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

Try the attached Text.

You didn't add an attachment.

schwenk wrote:

This text return in unexpected result

Attached:

MW_Bug.png (69×1 px, 4 KB)

Confirmed this bug on testwiki. A simple testcase would be:

blah blah '''foo
bar''' buggy buggy

Instead of bolding "foo bar", this bolds "foo" and "buggy buggy".

schwenk wrote:

With with [Newline
Links] it's a strange result too

This was discussed with Lee on wikitech-l years ago. He had some nonsense justification about line-based parsers being simpler or something. However, there was a more reasonable justification (possibly suggested by the same man) which is that ending bold and italic sections at newlines stops them from running on indefinitely and spoiling a large page. You can find many examples of this behaviour being used on Wikipedia talk pages, where people start italic sections accidentally. It's also possible that there are articles which would be broken by a change in this area.

I'll mark it LATER rather than WONTFIX since some day, in a few years' time, we might put syntax reform on the agenda. But any syntax changes will have to be carefully studied and widely announced. For now I'm mostly interested in consistency and backwards compatibility.

Still valid in 1.21wmf6

[Removing RESOLVED LATER as discussed in http://lists.wikimedia.org/pipermail/wikitech-l/2012-November/064240.html . Reopening and setting priority to "Lowest". For future reference, please use either RESOLVED WONTFIX (for issues that will not be fixed), or simply set lowest priority. Thanks a lot!]

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:02 AM
Aklapper removed a subscriber: wikibugs-l-list.
matmarex added subscribers: tstarling, matmarex.

I'll mark it LATER rather than WONTFIX since some day, in a few years' time, we might put syntax reform on the agenda. But any syntax changes will have to be carefully studied and widely announced. For now I'm mostly interested in consistency and backwards compatibility.

It probably could have been a WONTFIX ;)