Changing Text in lines leads to corruption.
Reported version
2.2
Priority
P2 - Medium
Type
Graphical (UI)
Severity
S5 - Suggestion
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
This was discovered in version 2.2.1 but exists in 2.1 with a slight variation.
Create a line in a score
Make the Begin text read
Save the score
Close and reopen the score
Result: Load error XML read error at line ### column ###: sym
Expected result: MuseScore realized the text is illegal and does not accept the change.
The slight variation in 2.1 is that you actually get a little bit of visual feed back like this:
This does not appear in version 2.2.1. I suspect this was changed as part of #178591: Ottava style in General Style dialog not consistent though I have no proof.
See https://musescore.org/en/node/271491 for files where problem was found and fixed one time for the user.
Comments
I'm guessing you originally included the text to use, but it seems to have been interpreted at HTML or Markdown as it isn't displaying. Can you describe the text? I might guess it's something involving an ampersand?
In reply to I'm guessing you originally… by Marc Sabatella
I forgot to add the unneeded spaces to make it appear. The Begin Text should read
< sym >
or
< /sym >
Or some other unmatched HTML(?) command.
Got it, thanks
You can make this render here by adding an <xml> before and a </xml> after, e.g. the broken code here is:
Suggestion sounds like "Support reading xml/html tags in the text everywhere in MuseScore", right?
Well, it is also about the possibility to render a score unreadable by adding some text that may look like an (unclosed) HTML/XML tag
like e.g.
<sym>
It doesn't do that in master though, it just turns into an empty string. And ever works properly with something like
<sym>accidentalFlat</sym>
, at least it does for text lines (which this issue is about. So I guess we can close it?so let's mark it fixed, reopen if you think it is not
I would change the title and keep it active as a suggestion.
It works already, it just accepts such HTML/XML tags (but shows them as an empty string,.i.e. ignores them, just like every browser does or should do)
If you really want < and > being shown as text this would be another issue
In reply to It works already by Jojo-Schmitz
Ah, sorry. I didn't read thoroughly.
Automatically closed -- issue fixed for 2 weeks with no activity.