commit fb5cb3ed037c0bfd405f99fc6cc727684e8efe1f
Author: Richard Kimberly Heck <[email protected]>
Date: Sun Mar 28 11:05:31 2021 -0400
Show the label for a cross-reference in the TOC.
---
src/insets/InsetRef.cpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp
index ed43d6a..716f8a7 100644
--- a/src/insets/InsetRef.cpp
+++ b/src/insets/InsetRef.cpp
@@ -425,9 +425,11 @@ void InsetRef::toString(odocstream & os) const
void InsetRef::forOutliner(docstring & os, size_t const, bool const) const
{
- // There's no need for details in the TOC, and a long label
- // will just get in the way.
- os += '#';
+ // It's hard to know what to do here. Should we show XREF in the TOC?
+ // Or should we just show that there is one? For now, we do the former.
+ odocstringstream ods;
+ plaintext(ods, OutputParams(nullptr));
+ os += ods.str();
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs