Last modified: 2014-11-13 12:46:54 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 T50290, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48290 - VisualEditor: ↵ is shown when wikicode contains single newline, which is not very WYSIWYG
VisualEditor: ↵ is shown when wikicode contains single newline, which is not ...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
: 50641 57454 61569 65324 68811 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-09 09:31 UTC by Nicolas Raoul
Modified: 2014-11-13 12:46 UTC (History)
12 users (show)

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


Attachments

Description Nicolas Raoul 2013-05-09 09:31:04 UTC
Single newlines have no effect on the way a wiki page is displayed.
So they should be ignored in a WYSIWYG editor.

Example: Third line at http://en.wikipedia.org/wiki/Content_Management_Interoperability_Services#Specification_progress_.26_TC_members
Comment 1 James Forrester 2013-05-09 14:40:57 UTC
(In reply to comment #0)
> Single newlines have no effect on the way a wiki page is displayed.
> So they should be ignored in a WYSIWYG editor.
> 
> Example: Third line at
> http://en.wikipedia.org/wiki/
> Content_Management_Interoperability_Services#Specification_progress_.
> 26_TC_members

Yeah, this is a bit of a mess. In wikitext (except in some circumstances like <pre>s), \n is a whitespace character, rendered as either a space or as nothing depending on the things around it, but \n\n is "</p><p>".

We could:

* Silently strip non-conformant wikitext syntax like this on ingest, but this would mean that VisualEditor would not play well with other, wikitext-based users.

* Show the newline as a line break in VisualEditor - in a way that (a) doesn't look like a new paragraph/context has started, and (b) doesn't look like <br />s will look, either, and in some way conveys the fact that it's different.

* (Current behaviour) Show the newline as a special kind of character in VisualEditor - in a way that (a) doesn't look like a 'real' new line, because it isn't.

* Silently not show the new line as such (but instead as… a space?), which is prone to having users accidentally alter them without intention, again causing problems for intermixed VisualEditor and wikitext editor sessions.

What are your thoughts?
Comment 2 Nicolas Raoul 2013-05-16 06:10:16 UTC
Same for TAB characters, which are shown as ➞

TAB characters have no meaning in wikicode, and I can't imagine anyone entering them for any purpose (plus they are difficult to enter in an HTML form).
I have never seen a case where they are intended (please point me to any example if I am mistaken).

I personally think TABs are a case where silent stripping would be acceptable.

---

Newline characters are more debatable, because some people use them to make wikicode more readable.
Comment 3 Nicolas Raoul 2013-05-16 06:11:10 UTC
Example of TAB characters:
http://en.wikipedia.org/wiki/Refrigerator#Production_by_country
Comment 4 Helder 2013-06-30 15:54:57 UTC
(In reply to comment #2)
> Newline characters are more debatable, because some people use them to make
> wikicode more readable.

...and I remmember some people use them to make diffs more readable[citation needed].
Comment 5 James Forrester 2014-02-27 21:37:03 UTC
*** Bug 61569 has been marked as a duplicate of this bug. ***
Comment 6 James Forrester 2014-03-10 20:21:06 UTC
*** Bug 50641 has been marked as a duplicate of this bug. ***
Comment 7 Amir E. Aharoni 2014-05-20 17:50:05 UTC
Indeed not WYSIWYG, but I happen to love this feature. I practically always remove these links when I see them. I'd say WONTFIX.
Comment 8 James Forrester 2014-05-30 03:06:57 UTC
*** Bug 65324 has been marked as a duplicate of this bug. ***
Comment 9 James Forrester 2014-07-30 21:04:14 UTC
*** Bug 68811 has been marked as a duplicate of this bug. ***
Comment 10 James Forrester 2014-11-13 12:46:54 UTC
*** Bug 57454 has been marked as a duplicate of this bug. ***

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


Navigation
Links