Last modified: 2010-05-15 14:36:20 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 2053 - Edit preview shouldn't remove spaces from summary
Edit preview shouldn't remove spaces from summary
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
PC All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-05-02 19:27 UTC by Timwi
Modified: 2010-05-15 14:36 UTC (History)
1 user (show)

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


Description Timwi 2005-05-02 19:27:04 UTC
When you edit a section, the edit summary field is prefilled with this text:

    /* Section title */

with a space at the end (!). This is so that you can easily add something after
the "*/".

When you preview, however, that space disappears, probably because the edit
summary is whitespace-trimmed. Maybe this should not be done until the edit is
actually saved.
Comment 1 Ævar Arnfjörð Bjarmason 2005-05-03 09:14:01 UTC
Confirmed in REL1_4 and HEAD, the problem is this line:

$this->summary   =  trim( $request->getText( 'wpSummary'  ) );

Which gets called on edit, preview and save, we might want to change it not to
be called on edit or to be only called on save.
Comment 2 Brion Vibber 2005-06-01 08:21:23 UTC
Fixed in CVS HEAD for 1.5.

Moved the trim on the summary into the Revision initializer, so it's done on the save rather than in the UI.

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