On 13/10/2008 10:02, Jürgen Spitzmüller wrote:
Abdelrazak Younes wrote:
Your diagnosis and suggested fix are right.

What would be the suggested fix?

asString(AS_STR_INSETS)
or
asString(AS_STR_LABEL | AS_STR_INSETS)

IOW does the TOC need AS_STR_LABEL?

Yes, that gives the number and the labels (chapter, etc).

I remember I have tried the latter and then the output was only correct in
some cases (inset string disappearing again if you add some paragraphs after
the heading or something like this).

If you typed something inside an inset within a section text, that's normal I guess.

IIRC we decided with JMarc
it was not worth going recursively into insets for toc purpose in order
to avoid potential visual problems (like big math insets or branch,
etc). So maybe we should add something between 'no inset' and 'all
insets'. I remember an old commit from JMarc that distinguish between
general insets and formating inset (like spaces, etc), maybe that can be
leveraged here.

I agree that this is a rather minor problem for the navigation menu and
outliner. However, this strings are also used for the TOC in plain text
output. In that case, I'd consider this dataloss.

I see, I didn't realize this was about the TOC in plain text output...

Abdel.

Reply via email to