Apostrophes were being converted inside code-like areas, like LilyPond insets. This patch fixes tests that started to fail:

  Processing `./60/lily-95ee389a.ly'
  Parsing...
  ././60/lily-95ee389a.ly:7:12: error: undefined character or shorthand: &
  \relative c
             ’’ {  g a b c}
This commit is contained in:
Thibaut Cuvelier 2022-12-09 20:17:58 +01:00
parent a34411d542
commit 0e2513a0e8

View File

@ -3649,7 +3649,7 @@ std::tuple<std::vector<docstring>, std::vector<docstring>, std::vector<docstring
delayedChars.emplace_back(1, c);
}
} else { // No need to delay the character.
if (c == '\'')
if (c == '\'' && !ignore_fonts)
*xs << XMLStream::ESCAPE_NONE << "&#8217;";
else
*xs << c;