From 1928bb9ed1be3199caa290a797a298f55db5be84 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 24 Mar 2013 09:39:41 -0400 Subject: [PATCH] Don't abbreviate titles in TOC. --- src/insets/InsetText.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index df957660f2..157d2f9cd6 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -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));