Currently, the Visual Editor shows the first space before the paragraph’s title. If I remember well, it didn't do that previously and in my opinion, it shouldn't do anyway.
Examples:
== Tudnivalók ==
==Tudnivalók ==
Bencemac | |
Dec 18 2017, 7:34 PM |
F11917337: 1.PNG | |
Dec 18 2017, 7:34 PM |
F11917344: 2.PNG | |
Dec 18 2017, 7:34 PM |
Currently, the Visual Editor shows the first space before the paragraph’s title. If I remember well, it didn't do that previously and in my opinion, it shouldn't do anyway.
Examples:
== Tudnivalók ==
==Tudnivalók ==
I can't reproduce this problem on the English or German Wikipedia, but I managed to reproduce it on French and Hungarian. It only happens for the first heading, but not any subsequent ones. How strange!
@Trizek-WMF Do you happen to know if you've seen this on the French Wikipedia before? Is it new behaviour?
Since it only looks like this when you're editing (which uses Parsoid HTML), but not when you're reading (which uses the old PHP parser HTML), it might be a Parsoid problem? @ssastry, do you know?
This is basically T157418: RFC: Make some aspects of Tidy's whitespace stripping behavior part of wikitext parsing "spec". On those pages where you were able to reproduce it, open with "?action=parsermigration-edit" .. It is likely reproducible in the right-hand column with RemexHTML.
So, feel free to opine in T157418 with your thoughts on the matter.
That is because I learnt that matmarex implemented a header-specific fix in the parser. See T157418#3849785 ... So, the generic issue is still T157418.
Summary from IRC discussion in #mediawiki-parsoid
Diagnosis:
(a) parsoid doesn't strip whitespace in its output (b) VE is stripping that whitespace, it appears (c) parsoid added html5 ids with fallback ids in some cases (deployed Dec 12) (d) the fallback id is interfering with (b) and causes leading whitespace to be displayed.
Solution:
(a) immediate term: fix the regression in VE with the introduction of fallback ids in parsoid output (b) long term: address T157418 in Parsoid & PHP Parser
In a nutshell, this extra whitespace appears in any section header that has diacritics in it. A fix in VE should help.
Sorry I didn't replied earlier.
I see that on French Wikipedia on titles that have diacritics but I forgot to report it (I was editing as a volunteer).
Change 405759 had a related patch set uploaded (by DLynch; owner: DLynch):
[mediawiki/extensions/VisualEditor@master] MWWikitextStringTransferHandler: Perform Parsoid cleanup on result
Change 405759 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] MWWikitextStringTransferHandler: Perform Parsoid cleanup on result