diff options
author | Oliver Specht <oliver.specht@cib.de> | 2024-02-20 15:38:36 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-02-21 15:03:42 +0100 |
commit | 95017739a05c4f515fc42caebfd1e01e8a9ba160 (patch) | |
tree | bcf8d6070019167df3847c1781650ece12232fca /editeng/source | |
parent | bf269ed81fe2ec7c89a0f7d2d22e8e1982f558f4 (diff) |
tdf#159797 replace dash also between sentences
Autocorrection replaces " - " with " <enDash/emDash> " also after
dot, question mark and exclamation mark.
Change-Id: Iad4b6c6073ab90b0c86514b8683dd2a07197f59d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163659
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 30c598594f5d..a33d4f77ab67 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -614,7 +614,7 @@ bool SvxAutoCorrect::FnChgToEnEmDash( sImplEndSkipChars,(cCh = rTxt[ --n ])); ) ; // found: "[A-z0-9][<AnyEndChars>] - [<AnySttChars>][A-z0-9] - if( rCC.isLetterNumeric( OUString(cCh) )) + if (rCC.isLetterNumeric(OUString(cCh)) || lcl_IsInArr(u".!?", cCh)) { rDoc.Delete( nTmpPos, nTmpPos + nLen ); rDoc.Insert( nTmpPos, bAlwaysUseEmDash ? sEmDash : sEnDash ); |