Help:Line-break handling: Difference between revisions

Content deleted Content added
<br /> or <br>: I am still seeing unnecessary alterations, so describe exactly what happens (checking page source, it seems that MediaWiki now favours the <br/> form without space) - have tested this at Special:Diff/1144937008
Line 46:
}}
 
The MediaWiki software converts valid forms like {{tag|br|o}}, {{tag|br|s}}, and {{tag|br&#32;|o}} to {{tag|br/|o}}. It also converts the invalid form {{tag|br|c}} to {{tag|br/|o}}. The invalid forms {{tag|&#32;br|o}} and {{tag|&#32;br|c}} are not converted, they will display literally and will not create line breaks, so must not be used.
 
While valid forms without the <code>/</code> (such as {{tag|br|o}} or {{tag|br&nbsp;|o}}) will work properly in the rendered page because modern browsers are forgiving of [[Well-formed element|malformed HTML]], they can break several of the available [[Wikipedia:Syntax highlighting|syntax highlighters]] for wiki code in the editing view (mis-highlighting all text in the page after the occurrence of that tag), and so should be avoided.