Last modified: 2010-05-15 15:59:52 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 13198 - extra empty line when editing page
extra empty line when editing page
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-02-29 17:47 UTC by Alexander Obuhovich
Modified: 2010-05-15 15:59 UTC (History)
0 users

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


Description Alexander Obuhovich 2008-02-29 17:47:14 UTC
1. start new page creation
2. enter page content, e.g. "abc" (no line breaks here)
3. press "Preview" button
4. notice, that empty line was added to text

Since 2 empty lines in wikitext are converted to line break (<br>) that brokes down article formatting when we save 2 templates and use them in one page like this:

test1 and test2 sould be in 1 line, but thay are not.

Problem could be fixed in EditPage.php in 1215 line (in 1.11.0 version of MediaWiki) by moving "</textarea>" up by 1 line, so empty line would not be added at each page edit.
Comment 1 Brion Vibber 2008-02-29 17:52:15 UTC
1) There's always a line break at the end in editing for convenience -- otherwise it's very annoying that there's no line break at the end.

2) All final whitespace is stripped on save.

3) Output for your template example appears entirely correct to me, and totally unrelated to the editing complaint.

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