Copy-and-paste text from external program results in loss of characters after "&" symbol

• Sep 28, 2015 - 16:32
Type
Functional
Severity
S4 - Minor
Status
closed
Project

(Musescore 2.0.2. Windows 10).

Create some text, say "Copy & Paste," in an external word processor – e.g WordPad, Open Office. Now copy and paste the text into any MuseScore text object.

Result: All characters after the "&" are lost.

Similar bug at https://musescore.org/en/node/72051.


Comments

That issue is totally reproducible. It is due to the interpretation of HTML names in core paste function (ex: " " for space), that seeks for the semicolon in the remaining part of the inserted text to extract the HTML name. When the HTML name is invalid, the remaining part of the string is ignored.

Just try to paste "copy & paste" to it working the way you'd expect.

I'm submitting a pull request to fix that bug.