jean-marc:
> I did not try it, but I do not like the approach. We do not need more
> ad-hoc solutions in the code. It is not clear to me that enumeration
> should get their own special treatement.
>
> I'll try to propose something more constructive tomorrow.

you might like the attached better (i do), the magic is now done in:

void Text::setLayout(Buffer const & buffer, pit_type start, pit_type end,
                docstring const & layout)

in text2.cpp,  but i don't see how to avoid the special casing.

(note that we already have some special casing for MARGIN_MANUAL there)

edwin

Attachment: resetdepth2.patch
Description: resetdepth2.patch

Reply via email to