Page MenuHomePhabricator

[uploadwizard] remove trailing whitespaces before automatic numbering
Closed, ResolvedPublicFeature

Description

problem

  1. fill out the title. when i use my phone, phone input automatically leaves a whitespace after a word. if i dont remove that trailing whitespace...
  2. use the "copy to all" function. titles are autonumbered like
File:Title  01.jpg

there will now be 2 whitespaces. 1 is the trailing left by my input. 1 is inserted by uploadwizard.

solution
remove all trailing whitespaces, half-width or full-width, before "copy to all" the title.

Event Timeline

Change #1038898 had a related patch set uploaded (by Simon04; author: Simon04):

[mediawiki/extensions/UploadWizard@master] Trim title before automatic numbering

https://gerrit.wikimedia.org/r/1038898

Change #1038898 merged by jenkins-bot:

[mediawiki/extensions/UploadWizard@master] Trim title before automatic numbering

https://gerrit.wikimedia.org/r/1038898