Page MenuHomePhabricator

Percent symbol not preceded by non-breaking space.
Closed, DuplicatePublic

Description

Using the Android app, I noticed a breaking space between a number and a "%". Because MediaWiki automatically places a non-breaking space before a percentage sign, this shouldn't happen. I don't know if the bug also occurs if a non-breaking space is typed explicitly into wikitext.

Event Timeline

MGChecker renamed this task from nbsp aren to nbsp aren't rendered in Android app.Nov 27 2017, 9:53 PM
MGChecker added a project: Android-app-Bugs.
MGChecker updated the task description. (Show Details)

Because MediaWiki automatically places a non-breaking space before a percentage sign

Since when? :D Are you sure? What page was it on?

Because MediaWiki automatically places a non-breaking space before a percentage sign

Since when? :D Are you sure?

I'm really sure it does, I even had some discussions about this back when I couldn't beliebe it myself.

What page was it on?

I think it is a gerneral issue. To be honest, I can't tell anymore where exactly I noticed it.

Because MediaWiki automatically places a non-breaking space before a percentage sign

Since when? :D Are you sure?

I'm really sure it does, I even had some discussions about this back when I couldn't beliebe it myself.

What page was it on?

I think it is a gerneral issue. To be honest, I can't tell anymore where exactly I noticed it.

See, the reason I'm asking the question is because I've been on the projects for 10 years or so at this point and I can't recall any discussion where a non-breaking space was being generated by MediaWiki, and especially not where the percent sign was causing it, except in the context of e.g. Template:Convert, which is obviously not core.

You're going to need to see if you can provide us an example of the issue if you truly believe it's MediaWiki.

I orchestrated an example that should show the issue on every device: https://de.wikipedia.org/wiki/Benutzer:MGChecker/Percent . In the App, the Spaces between the 20 and the % are breaking, on the actual site they aren't.

Huh. Added in T12334: Replace normal spaces before percent (%) signs with non-breaking spaces, 2007. I wonder if this is behavior that should
actually be in core. (Other documentation at T74941#794299 .)

LGoto subscribed.

Related tasks are closed, looks like there's nothing for the Android team to do here, so am removing from Android Backlog. Feel free to re-add if action is needed.

Well, did the example in T181441#3798312 get retested...? If not than there's something for an Android dev to do. If yes than this task should get closed instead.

I just retested it, the behavior hasn't been fixed at all. This isn't happening on normal view, so it's definitely an Android app issue.

Dbrant renamed this task from nbsp aren't rendered in Android app to Percent symbol not preceded by non-breaking space..Aug 21 2018, 3:49 PM

I agree with @Arlolra's resolution as dup. The "french space" armoring was tweaked in T197902, but has always added non-breaking spaces before ?:;!%». Parsoid hasn't ever really supported this properly.