commit cbbdb3516ff060f56fe3e15503482eaa0dbbe1c5
Author: Juergen Spitzmueller <[email protected]>
Date: Tue Aug 26 10:26:57 2025 +0200
Do not group labels with spaces in refstyle range commands
This must only be done in other commands
---
src/insets/InsetRef.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp
index d151be0625..32c47b73d3 100644
--- a/src/insets/InsetRef.cpp
+++ b/src/insets/InsetRef.cpp
@@ -440,7 +440,7 @@ void InsetRef::latex(otexstream & os, OutputParams const &
rp) const
else
os << ",";
}
- if (contains(*it, ' ') &&
buffer().masterParams().xref_package == "refstyle"
+ if (contains(*it, ' ') && !useRange() &&
buffer().masterParams().xref_package == "refstyle"
&& isRefStyleSupported(prefix))
// refstyle bug: labels with blanks need to be
grouped for known commands
// otherwise the blanks will be gobbled
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs