[LyX/master] Check for uppercase marker after style prefix has been stripped
Juergen Spitzmueller
spitz at lyx.org
Sat Jul 13 15:22:09 UTC 2024
commit 660ec568ef277ce8cd76b034c7aed85ad4ac6c81
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Sat Jul 13 17:16:34 2024 +0200
Check for uppercase marker after style prefix has been stripped
---
src/TextClass.cpp | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/TextClass.cpp b/src/TextClass.cpp
index 43731e14cc..da58054fb3 100644
--- a/src/TextClass.cpp
+++ b/src/TextClass.cpp
@@ -1161,10 +1161,6 @@ bool TextClass::readCiteEngine(Lexer & lexrc, ReadType rt, bool const add)
char ichar = def[0];
if (ichar == '#')
continue;
- if (isUpperCase(ichar)) {
- cs.forceUpperCase = true;
- def[0] = lowercase(ichar);
- }
/** For portability reasons (between different
* cite engines such as natbib and biblatex),
@@ -1230,6 +1226,11 @@ bool TextClass::readCiteEngine(Lexer & lexrc, ReadType rt, bool const add)
lyx_cmd = split(lyx_cmd, style, '@');
cs.styles = getVectorFromString(style);
}
+ char fchar = lyx_cmd[0];
+ if (isUpperCase(fchar)) {
+ cs.forceUpperCase = true;
+ lyx_cmd[0] = lowercase(fchar);
+ }
cs.name = lyx_cmd;
cs.cmd = latex_cmd.empty() ? lyx_cmd : latex_cmd;
if (!alias.empty()) {
More information about the lyx-cvs
mailing list