Page MenuHomePhabricator

VisualEditor: Adding more than one empty line (via Return) results in only 1 blank line being saved.
Closed, DeclinedPublic

Description

Input in VisualEditor and Output after saving (+ Parsoid Server output)

MediaWiki:
1.22alpha (ffa9b0a) 19:02, 11. Aug. 2013

VisualEditor (Version 0.1.0)(0e76b1b)20:01, 11. Aug. 2013

ParsoidServer:
commit 808cc39c81df83daaec458c81edbd126fd1dd19a
Author: Subramanya Sastry <ssastry@wikimedia.org>
Date: Mon Aug 12 16:15:24 2013 -0500

Adding more than one empty line isn't possible in the VisualEditor extension. Is this a desired behaviour?


Version: unspecified
Severity: normal

Attached:

extra_linebreaks.png (556×1 px, 47 KB)

Details

Reference
bz52798

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:11 AM
bzimport added a project: VisualEditor.
bzimport set Reference to bz52798.

Is this a question about the VE interface (in which case you should either file this against the VE component OR show up on IRC and ask on #mediawiki-visualeditor) or the wikitext that is generated?

Sounds like VE, as we'll produce empty lines fr p/br content just fine. Moving to VE.

I've tested it with the VisualEditor on the official mediawiki-page. Here it works: Im able to enter more than one line break. Can you guys reproduce my problem with my version?

I updated my VE to the latest master-branch-commit:

commit 2c4e9d832374f095d3fa9d43b845ac7c7083aeb4
Merge: c84c47a 7673a39
Author: jenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Date: Wed Aug 14 22:00:12 2013 +0000
Merge "Support previews and concurrent updates in ce.GeneratedContentNode"

Browser-Information: Chrome on Windows 7 64bit 28.0.1500.95

Still the same problem.

Confirmed this is still happening on en.wp (wmf 15) and mediawiki.org (wmf 16)

Still happening with the following VE-commit

commit c98a964d5f8495f0d16af9229abbeb0449042d1e
Merge: 3d01a5b e7aed52
Author: jenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Date: Wed Sep 18 01:11:46 2013 +0000
Merge "Fix check for preformatted when stripping whitespace"

Browser: Chrome 29.0.1547.66 m W764bit

Multiple sequential blank paragraphs are collapsed to one by design (we provide an HTML editor, not a desktop publishing system).