New line break attribute "clear"
Miklos Vajna
vmiklos at collabora.com
Wed Mar 16 09:43:37 UTC 2022
Hi Regina,
On Wed, Mar 16, 2022 at 10:18:44AM +0100, Regina Henschel <rb.henschel at t-online.de> wrote:
> I wonder about the new attribute. Could you please explain it a bit (perhaps
> on dev list?).
Yes, let me copy the dev list.
> I know a "clear" attribute from CSS. There it is an attribute to a
> paragraph. Having it at line break would correspond to having it for a <br/>
> element. That makes no sense to me.
The new <text:line-break loext:clear="..."> attribute I added is to
represent a clearing break. This is something HTML and DOCX has, so we
had formatting loss when importing those formats, this extension is
meant to fix this problem.
OOXML documents the various types of a clearing break at 17.18.3
ST_BrClear (Line Break Text Wrapping Restart Location), so far Writer
layout just handles "all" and "none", the work is still in progress.
HTML has <br clear="..."> for the same.
sw/qa/extras/ooxmlexport/data/clearing-break.docx is a sample document:
we used to incorrectly render this document without clearing breaks.
Does that help?
Thanks,
Miklos
More information about the LibreOffice
mailing list