mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Don't abbreviate titles in TOC.
This commit is contained in:
parent
d2e947d585
commit
1928bb9ed1
@ -847,13 +847,14 @@ void InsetText::addToToc(DocIterator const & cdit, bool output_active) const
|
||||
if (toclevel != Layout::NOT_IN_TOC && toclevel >= min_toclevel) {
|
||||
// insert this into the table of contents
|
||||
docstring tocstring;
|
||||
int const length = output_active ? INT_MAX : TOC_ENTRY_LENGTH;
|
||||
if (arginset) {
|
||||
tocstring = par.labelString();
|
||||
if (!tocstring.empty())
|
||||
tocstring += ' ';
|
||||
arginset->text().forToc(tocstring, TOC_ENTRY_LENGTH);
|
||||
arginset->text().forToc(tocstring, length);
|
||||
} else
|
||||
par.forToc(tocstring, TOC_ENTRY_LENGTH);
|
||||
par.forToc(tocstring, length);
|
||||
dit.pos() = 0;
|
||||
toc.push_back(TocItem(dit, toclevel - min_toclevel,
|
||||
tocstring, output_active, tocstring));
|
||||
|
Loading…
Reference in New Issue
Block a user