[LyX/master] Don't add \text<script> wrapper in pass-thru context (#13022)
Juergen Spitzmueller
spitz at lyx.org
Fri Jan 12 14:01:20 UTC 2024
commit 37dce940862d406435529fa2a109c333e4b6e9c1
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Fri Jan 12 16:27:24 2024 +0100
Don't add \text<script> wrapper in pass-thru context (#13022)
---
src/Paragraph.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 696f503..b908f01 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -3150,8 +3150,8 @@ void Paragraph::latex(BufferParams const & bparams,
}
}
} else if (i >= start_pos && (end_pos == -1 || i < end_pos)) {
- if (!bparams.useNonTeXFonts)
- script = Encodings::isKnownScriptChar(c);
+ if (!bparams.useNonTeXFonts && !runparams.pass_thru)
+ script = Encodings::isKnownScriptChar(c);
if (script != alien_script) {
if (!alien_script.empty()) {
os << "}";
More information about the lyx-cvs
mailing list