On 13/10/2008 08:20, Jürgen Spitzmüller wrote:
Jürgen Spitzmüller wrote:
Export to plaintext does not produce a dash
at all in the TOC.
Seems that textString is currently broken in general (the same happens for
other special characters and for spaces at least).
It has to do with TocBackend::updateItem passing asString(AS_STR_LABEL) and
not asString(AS_STR_INSETS) -- only the latter returns the inset's textString.
Could someone familiar with the asString method have a look, please?
Your diagnosis and suggested fix are right. 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.
Abdel.