Last modified: 2011-04-14 15:10:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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