Don't add \text<script> wrapper in pass-thru context (#13022)

This commit is contained in:
Juergen Spitzmueller 2024-01-12 16:27:24 +01:00
parent 8dd9cfcf5c
commit 37dce94086

View File

@ -3150,8 +3150,8 @@ void Paragraph::latex(BufferParams const & bparams,
} }
} }
} else if (i >= start_pos && (end_pos == -1 || i < end_pos)) { } else if (i >= start_pos && (end_pos == -1 || i < end_pos)) {
if (!bparams.useNonTeXFonts) if (!bparams.useNonTeXFonts && !runparams.pass_thru)
script = Encodings::isKnownScriptChar(c); script = Encodings::isKnownScriptChar(c);
if (script != alien_script) { if (script != alien_script) {
if (!alien_script.empty()) { if (!alien_script.empty()) {
os << "}"; os << "}";