[LyX/master] Fix cut and paste error

Juergen Spitzmueller spitz at lyx.org
Fri Dec 9 07:16:55 UTC 2022


commit c90e656d9d28e61c5970601150a03d2cc54aebe8
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Dec 9 09:12:23 2022 +0100

    Fix cut and paste error
---
 lib/lyx2lyx/lyx_2_4.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py
index 024480f..e75cdbf 100644
--- a/lib/lyx2lyx/lyx_2_4.py
+++ b/lib/lyx2lyx/lyx_2_4.py
@@ -3061,7 +3061,7 @@ def convert_Semibolds(document):
                 else:
                     # We need to use this regex since split() does not handle quote protection
                     ttopts = re.findall(r'[^"\s]\S*|".+?"', document.header[x])
-                    document.header[x] = "\\font_typewriter_opts \"semibold, " + sfopts[1].strip('"') + "\""
+                    document.header[x] = "\\font_typewriter_opts \"semibold, " + ttopts[1].strip('"') + "\""
 
 
 def convert_NotoRegulars(document):


More information about the lyx-cvs mailing list