zero-length runs


Subject: zero-length runs
From: Paul Rohr (paul@abisource.com)
Date: Tue Jan 23 2001 - 16:45:22 CST


At 02:03 PM 1/22/01 +1100, Martin Sevior wrote:
>HI Jesper,
> Thanks for fixing this Jesper. It makes sense to be that if the
>insertion point is between runs we will get troubles. Since we have zero
>length runs this is something we have to deal with. It seems sensible then
>to move the code to search for the docpos (containsOffset) into the block.

This sounds like the obvious point to insert the reminder that zero-length
runs are a hack we'd probably be better off without. How many different
types of these do we have now?

I'm already on record that we need non-zero-length runs at EOB (so that we
can get selection behaviors right there, not to mention the glaring lack of
those funky Show Paragraph symbols.)

  http://www.abisource.com/mailinglists/abiword-dev/99/December/0315.html
  http://www.abisource.com/mailinglists/abiword-dev/00/June/0130.html
  http://www.abisource.com/mailinglists/abiword-dev/00/June/0198.html

I know Jeff was never thrilled with the behavior of FmtMarks either, but
until someone comes up with a better mechanism, that one should probably
stay.

Other than those two cases, do we have any other zero-length runs? The code
could certainly get a lot simpler in places if we didn't constantly have to
work around them.

Paul



This archive was generated by hypermail 2b25 : Tue Jan 23 2001 - 16:38:58 CST