Last modified: 2014-11-13 12:46:54 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
(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?
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.
Example of TAB characters: http://en.wikipedia.org/wiki/Refrigerator#Production_by_country
(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].
*** Bug 61569 has been marked as a duplicate of this bug. ***
*** Bug 50641 has been marked as a duplicate of this bug. ***
Indeed not WYSIWYG, but I happen to love this feature. I practically always remove these links when I see them. I'd say WONTFIX.
*** Bug 65324 has been marked as a duplicate of this bug. ***
*** Bug 68811 has been marked as a duplicate of this bug. ***
*** Bug 57454 has been marked as a duplicate of this bug. ***