Last modified: 2011-04-14 15:10:53 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 T10223, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8223 - Preserve single line breaks in source, let browsers ignore them themselves
Preserve single line breaks in source, let browsers ignore them themselves
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-12-12 02:10 UTC by Michael Zajac
Modified: 2011-04-14 15:10 UTC (History)
0 users

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


Attachments

Description Michael Zajac 2006-12-12 02:10:23 UTC
Poetry and lyrics cannot be simply entered in wikitext. The only way to do 
it is by tediously adding deprecated <br /> tags after each and every line.

Adding a space at the beginning of each line is no good, because it 
changes text to a monospace font.

Entering a <pre></pre> block is no good, because it changes text to a 
monospace font and breaks wikitext expansions.

So it would be desirable to enter <div style="white-space:pre;"></div>, 
but this is broken because line breaks in the wikitext are converted to 
spaces, so all of the lines of a paragraph run together.

The solution is to preserve wikitext line breaks in the source code.  This 
would have no effect on display, since the web browser converts any 
whitespace to a single space, except in blocks that are formatted as white-
space:pre in CSS.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-12-12 03:50:11 UTC
Please refer to the Poem extension for a way to do this at present.  I do think
it would be very sensible to leave the line breaks as-is; is there some reason
we strip them?

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


Navigation
Links