Skip to content

Commit

Permalink
fix #321924 allow sub and sup tags in instrument names
Browse files Browse the repository at this point in the history
Backport of musescore#8254
  • Loading branch information
wizofaus authored and Jojo-Schmitz committed Aug 30, 2021
1 parent 0972921 commit ae39a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/textbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2671,7 +2671,7 @@ bool TextBase::validateText(QString& s)
d.append("&");
}
else if (c == '<') {
const char* ok[] { "b>", "/b>", "i>", "/i>", "u>", "/u", "font ", "/font>", "sym>", "/sym>" };
const char* ok[] { "b>", "/b>", "i>", "/i>", "u>", "/u", "font ", "/font>", "sym>", "/sym>", "sub>", "/sub>", "sup>", "/sup>" };
QString t = s.mid(i+1);
bool found = false;
for (auto k : ok) {
Expand Down

0 comments on commit ae39a9a

Please sign in to comment.