diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-11-16 12:10:30 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-11-16 13:11:54 +0100 |
commit | 1c2ef850db29beb369dcc89a58fc73416ecd9c5c (patch) | |
tree | f00197da443c82440cd2807eb782c0bd9467a597 /postprocess | |
parent | d3cd7295c9a0ac50ce0315061bcc00cdafb69456 (diff) |
sw, .uno:TextFormField command: accept HTML in the FieldResult parameter
- improve the calculation of the SwPaM that decides the start/end of the
fieldmark: with HTML import the length of the content is not the
length of the input string anymore
- use SwTranslateHelper::PasteHTMLToPaM() to accept formatted content
inside a single paragraph
- avoid unwanted last empty paragraph from the HTML import
- this builds on top of commit 6870c0c3385bf5d19e9c80bf973fca255ae38c08
(sw: add new FieldCode parameter for the .uno:TextFormField command,
2022-11-15), which introduced plain text support for FieldResult
Change-Id: I8332f6ee532ab1e844a4b94f22b1f72d2406eb3a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142756
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'postprocess')
0 files changed, 0 insertions, 0 deletions