Last modified: 2010-05-15 15:59:52 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 T15198, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13198 - extra empty line when editing page
extra empty line when editing page
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.11.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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
{{Template:Sample1}}

test2
{{Template:Sample2}}
---------
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.


Navigation
Links