Last modified: 2010-05-15 15:56:38 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 6218 - <nowiki></nowiki> removes spaces in text
<nowiki></nowiki> removes spaces in text
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-06-06 09:59 UTC by Jacob Dall
Modified: 2010-05-15 15:56 UTC (History)
0 users

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


Description Jacob Dall 2006-06-06 09:59:42 UTC
When typing the following string in the edit box of a MediaWiki page:

<nowiki>Some text     # a comment</nowiki>

it's being rendered as:

Some text # a comment

That is, all spaces except one before the '#' are removed. 

If this is by design, please change it. Otherwise, please fix it. I would very much dislike having to work around 
this by using a bunch of &nbsp;'s

Jacob Dall
Comment 1 Jacob Dall 2006-06-06 10:03:02 UTC
Even your bug reporting system removes the spaces! That makes it hard to report this type of bug.

The text (with spaces replaced by _) entered in the edit box shound have read:

Comment 2 Anders Wegge Jakobsen 2006-06-06 10:17:38 UTC
Read the source of this page. What you are seeing is the browser collapsing
multiple whitespace charcters into one. If preservation of spaces is important,
use <pre>.
Comment 3 Jacob Dall 2006-06-06 10:23:34 UTC
Read the source - it sure looks like I would expect.

I wasn't aware of that tag. Thanks for telling me.

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