Last modified: 2010-05-15 15:56:38 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 T8218, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6218 - <nowiki></nowiki> removes spaces in text
<nowiki></nowiki> removes spaces in text
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.6.x
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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

Thanks,
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:

<nowiki>Some_text_____#_a_comment</nowiki>
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.


Navigation
Links