>>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes:
Martin> My original patch is still needed and fixes a useability bug. Martin> As I wrote earlier,a ToC containing only numbers is unuseable Martin> for navigation or outlining. I verified that it does the job. I know see what the bug you reported really is. Sorry for answering to a different question :) Unfortunately, I do not think that this answers correctly to the question :) The right way to make this work is to implement textString for text insets. Since textString is supposed to be used for shortish things, I propose the following: implement InsetBranch::textString that does nothing if branch is disabled, and otherwise calls paragraphs()->begin()->asString(), that is, only output its first paragraph. It would also be possible to start by implementing InsetText::textString to call paragraphs()->begin()->asString(), but this may lead to unwanted insets in the ToC. Martin> Does anyone see a gotcha or want to test this still (generally Martin> a good idea), or can I commit this to 1.5? (a similar patch to Martin> toc.C in 1.4 would also be appropriate.) A patch similar to above would be OK for 1.4. JMarc