mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
Show the label for a cross-reference in the TOC.
This commit is contained in:
parent
779f0a74f0
commit
fb5cb3ed03
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user