commit 0e2513a0e8b400cbbb368412eb910789d6147054
Author: Thibaut Cuvelier <[email protected]>
Date:   Fri Dec 9 20:17:58 2022 +0100

    Amend d4095dc0
    
    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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 3f1f814..063bf32 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -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;
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to