diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-02-11 16:18:26 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-02-14 10:13:52 +0100 |
commit | ee8df01413c73597b7bf44637fdce726b3f2085b (patch) | |
tree | 37cfe4fad1ffbe5859aea7c32c36501d42e75f86 /basic | |
parent | b651275e76ec41e2802cb1a558d9fd90b73ef6c7 (diff) |
sw XHTML / ReqIF filter: avoid adding and removing <br>s for trailing <br>s
The sw/ HTML export writes two <br>s for a <br> in the doc model at the
end of a paragraph, because the last <br> would be ignored by browsers.
But then the import ignores all <br>s at the end of paragraphs, so the
import and the export are not a 1:1 mapping; but at least the layout of
the exported HTML is close to the Writer layout.
ReqIF focuses on the preserving the semantics of the doc model instead:
it already doesn't open the document in "web view", and it's not
expected that the number of <br>s change on import or export.
Fix the problem by disabling both the import and the export tweaks in
the ReqIF case.
It would perhaps make sense to do this in general, but for users who
only care about the export layout (and never import the result again),
that would be probably a regression, so don't change this
unconditionally for now.
Change-Id: Iabd4a462185493c1ece0352069077e04c293816b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129820
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit b86679ea6bd2bb053c3822c4642a62a49e381909)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129834
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'basic')
0 files changed, 0 insertions, 0 deletions