[LyX/2.4.x] Strip quotes from PackageOptions. Amends a77c84a0b4d5

Juergen Spitzmueller spitz at lyx.org
Thu Jun 6 17:00:53 UTC 2024


commit d4bd0f9b1e0a47173585b52534d8a5bbd76d1cee
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Thu Jun 6 06:58:33 2024 +0200

    Strip quotes from PackageOptions. Amends a77c84a0b4d5
    
    (cherry picked from commit 1449fbf9ae3ecc70fbc7299f8901ecc31cdff1ab)
---
 src/TextClass.cpp | 2 +-
 status.24x        | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/TextClass.cpp b/src/TextClass.cpp
index f6ec875167..57e382dcb9 100644
--- a/src/TextClass.cpp
+++ b/src/TextClass.cpp
@@ -693,7 +693,7 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt)
 			string const pkg = lexrc.getString();
 			lexrc.eatLine();
 			string const options = lexrc.getString();
-			package_options_[pkg] = options;
+			package_options_[pkg] = trim(options, "\"");
 			break;
 		}
 
diff --git a/status.24x b/status.24x
index a62ec4aac1..976c69baf6 100644
--- a/status.24x
+++ b/status.24x
@@ -45,8 +45,11 @@ What's new
 
 - fix overflow of appendix red frame in document-bottom grey area.
 
+
 * INTERNALS
 
+- Re-allow the use of quoted argument to PackageOptions layout tag.
+
 
 * DOCUMENTATION AND LOCALIZATION
 


More information about the lyx-cvs mailing list