Juergen Spitzmueller <[EMAIL PROTECTED]> writes:

> I finally got too annoyed by the current behaviour when inserting a
> collapsable over a selection.

You will get a medal for this.

> The new approach is to keep the layout of the inner first paragraph
> and reset the outer paragraph to Standard, if the selection spans
> multiple paragraphs. If not (i.e. for inline selections), the inset
> content is still reset to Standard. This strikes me the correct
> behaviour.

There is still one case that might matter: when one selects the whole
contents of one Itemize paragraph, your code does not trigger, and I
think it should. The right test is maybe to check whether the
enclosing inset is alone in its paragraph.

If one tries to select the end-of-line marker of the paragraph, it
gets worse: start from
  * aaa
  * bbb
select from start of aaa to before start of bbb and insert a note. You
get:

Note | * aaa
     | *
bbb

The second itemize item is empty, which should of course never happen.

JMarc

Reply via email to