Last modified: 2013-08-16 02:07:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52797, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50797 - Whitespace immediately before a template at the start of the page is swallowed and so unremoveable
Whitespace immediately before a template at the start of the page is swallowe...
Status: RESOLVED WORKSFORME
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Gabriel Wicke
http://parsoid.wmflabs.org/en/User:Jd...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-05 12:17 UTC by Oliver Keyes
Modified: 2013-08-16 02:07 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Oliver Keyes 2013-07-05 12:17:15 UTC
Try removing the whitespace at the top of https://en.wikipedia.org/wiki/Burr%E2%80%93Hamilton_duel and see what happens.
Comment 1 James Forrester 2013-07-05 17:55:15 UTC

*** This bug has been marked as a duplicate of bug 47790 ***
Comment 2 Derk-Jan Hartman 2013-07-06 09:27:30 UTC
This is NOT a duplicate of 47790

This bug is about whitespace in the SOURCE, that is not editable in the VE. Where 47790 deals about whitespace in VE that is not in the source.

If you look at https://en.wikipedia.org/wiki/Burr–Hamilton_duel you will see that the first line is slightly below the infobox. In VE mode, https://en.wikipedia.org/wiki/Burr–Hamilton_duel?veaction=edit they look to be at the same height. The linebreaks at the top of the source seem to have been 'compressed' and are ignored in VE, while they do have effect in render mode.
Comment 3 Chris McKenna 2013-07-06 21:12:01 UTC
Permanent link to the relevant page revision:

http://en.wikipedia.org/w/index.php?title=Burr%E2%80%93Hamilton_duel&oldid=561095260
Comment 4 James Forrester 2013-07-15 02:13:19 UTC
So, to understand this bug - this is about where is some (mistaken/wrong) wikitext with an extra new line in front of a block template that gets swallowed by Parsoid into the template that follows it (but can't be removed from there as Parsoid quietly hides that)?

(Note that the second extra whitespace is a normal <br> and so shown in VisualEditor as a "↵" and can be removed in-line.)
Comment 5 Gabriel Wicke 2013-08-16 02:07:48 UTC
http://en.wikipedia.org/w/index.php?title=Burr%E2%80%93Hamilton_duel&oldid=561095260&veaction=edit shows the whitespace, and it also seems to be possible to delete a line there by focusing it and pressing 'delete'. Newlines that don't produce a paragraph are also preserved in HTML, but are not editable in wikitext.

See the source of http://parsoid.wmflabs.org/en/Burr%E2%80%93Hamilton_duel?oldid=561095260, in which the first paragraph after the infobox starts with "<p><br>".

Closing as worksforme. Please open a bug against VE if you have trouble with focusing or deleting the <br>.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links