Re: is RES_PARATR_LIST_AUTOFMT really necessary?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Michael,

On Mon, Sep 30, 2024 at 03:43:36PM +0200, Michael Stahl <mst@xxxxxxxxxxxxxxx> wrote:
> but it looks like in Word formats there isn't really a "paragraph
> formatting" that is different from the "paragraph marker formatting", or at
> least none that i can find - except for the paragraph style.
> 
> so i've been asking myself, can't we just do away with
> RES_PARATR_LIST_AUTOFMT and use the node's item set instead?

I had a couple of fixes in this area last year:

https://vmiklos.hu/blog/sw-number-portion.html

I believe one setup is where some kind of container for the paragraph
marker itself is needed is when the paragraph itself has a certain
formatting, but the paragraph marker doesn't have that (see the 4th
screenshot in that post).

As you say, this can be avoided, if we carefully make sure that
"RES_TXTATR_AUTOFMT attribute from 0 to the end of the node" is never
upgraded to the node's item set, but I believe you can't change that
without breaking existing ODF documents. A similar case is the span that
is empty at the end of the paragraph, this would be naturally optimized
away, but we would have to keep it if we don't have
RES_PARATR_LIST_AUTOFMT.

So either you would need yet another compat flag, and then you can get
rid of RES_PARATR_LIST_AUTOFMT, or you can live with the current model
that Writer supports paragraph-level char props (which is not possible
in Word), but then you need RES_PARATR_LIST_AUTOFMT.

And I agree it's a bit unfortunate to have that name, since it's not
only there for lists.

Regards,

Miklos



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux