diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-03-23 08:59:16 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-03-23 09:40:22 +0100 |
commit | 59af0be9fbfcef4e157a74099a6aef0c60facb36 (patch) | |
tree | 9be66753680a9c970bfa08e4231254c78dbaccab /sw/source/filter/ascii | |
parent | 9633cad413960a4bd2963a3ace25ad52d5747929 (diff) |
sw clearing breaks: add plain text export
No need to care about the clearing, but make sure that
RES_TXTATR_LINEBREAK gets downgraded to a plain CH_TXTATR_NEWLINE.
Change-Id: Ia4f6b45f60a414d856db41fd09d06c902dffd908
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131958
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/source/filter/ascii')
-rw-r--r-- | sw/source/filter/ascii/ascatr.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/filter/ascii/ascatr.cxx b/sw/source/filter/ascii/ascatr.cxx index 6edccce4298c..805f3ba48bc1 100644 --- a/sw/source/filter/ascii/ascatr.cxx +++ b/sw/source/filter/ascii/ascatr.cxx @@ -148,6 +148,12 @@ bool SwASC_AttrIter::OutAttr( sal_Int32 nSwPos ) rFootnote.GetNumber()); } break; + case RES_TXTATR_LINEBREAK: + { + // Downgrade the clearing break to a simple linebreak. + sOut = OUStringChar(GetCharOfTextAttr(*pHt)); + break; + } } if( !sOut.isEmpty() ) m_rWrt.Strm().WriteUnicodeOrByteText(sOut); |