#include "support/debug.h"
#include "support/docstream.h"
#include "support/gettext.h"
+#include "support/lstrings.h"
using namespace std;
{
DocIterator pit = cpit;
pit.push_back(CursorSlice(const_cast<InsetFoot &>(*this)));
-
+
+ docstring tooltip;
+ text().forOutliner(tooltip, TOC_ENTRY_LENGTH);
+ docstring str = custom_label_ + ": " + tooltip;
+ tooltip = support::wrapParas(tooltip, 0, 60, 2);
+
shared_ptr<Toc> toc = buffer().tocBackend().toc("footnote");
- docstring str = custom_label_ + ": ";
- text().forOutliner(str, TOC_ENTRY_LENGTH);
- toc->push_back(TocItem(pit, 0, str, output_active, toolTipText(docstring(), 3, 60)));
+ toc->push_back(TocItem(pit, 0, str, output_active, tooltip));
+
// Proceed with the rest of the inset.
InsetFootlike::addToToc(cpit, output_active, utype);
}