| commit | 9d0b8f692737e63614594d5f2c545d6e81b69fbb | [log] |
|---|---|---|
| author | Oliver Specht <oliver.specht@cib.de> | Tue Feb 20 15:38:36 2024 +0100 |
| committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | Wed Feb 21 20:50:29 2024 +0100 |
| tree | 4c6d05f799df52182175799e63ee8832dc94b747 | |
| parent | 19883f7c86882f0367d072a0af034810c636c208 [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> (cherry picked from commit 95017739a05c4f515fc42caebfd1e01e8a9ba160) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163625 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index ff2c451..676959d 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 );