Last modified: 2010-05-15 14:36:20 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 T4053, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2053 - Edit preview shouldn't remove spaces from summary
Edit preview shouldn't remove spaces from summary
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
PC All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.


Navigation
Links