]> git.lyx.org Git - features.git/commitdiff
Amend d4095dc0
authorThibaut Cuvelier <tcuvelier@lyx.org>
Fri, 9 Dec 2022 19:17:58 +0000 (20:17 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Fri, 9 Dec 2022 19:17:58 +0000 (20:17 +0100)
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
             &#8217;&#8217; {  g a b c}

src/Paragraph.cpp

index 3f1f814b47f3bd52f4de26cd28fcd699dc3afdeb..063bf324de3c5897c7792633aa41c71c7b782861 100644 (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;