Skip to content

Commit

Permalink
fix #47786: Copyright is truncated in header/footer when containing an &
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Feb 17, 2015
1 parent 34af379 commit 6214640
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libmscore/page.cpp
Expand Up @@ -551,10 +551,10 @@ QString Page::replaceTextMacros(const QString& s) const
d += QString("%1").arg(_score->npages() + _score->pageNumberOffset());
break;
case 'f':
d += _score->rootScore()->name();
d += _score->rootScore()->name().toHtmlEscaped();
break;
case 'F':
d += _score->rootScore()->fileInfo()->absoluteFilePath();
d += _score->rootScore()->fileInfo()->absoluteFilePath().toHtmlEscaped();
break;
case 'd':
d += QDate::currentDate().toString(Qt::DefaultLocaleShortDate);
Expand Down Expand Up @@ -583,7 +583,7 @@ QString Page::replaceTextMacros(const QString& s) const
case 'C': // only on first page
if (!_no) // FALLTHROUGH
case 'c':
d += _score->metaTag("copyright");
d += _score->metaTag("copyright").toHtmlEscaped();
break;
case '$':
d += '$';
Expand All @@ -598,7 +598,7 @@ QString Page::replaceTextMacros(const QString& s) const
tag += s[k];
}
if (k != n) { // found ':' ?
d += _score->metaTag(tag);
d += _score->metaTag(tag).toHtmlEscaped();
i = k-1;
}
}
Expand Down

0 comments on commit 6214640

Please sign in to comment.