ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.89k stars 1.1k forks source link

Cannot enter a double dash when autocorrect is enabled #1869

Open HectorB-2020 opened 2 years ago

HectorB-2020 commented 2 years ago

This issue is unique.

Operating System

Windows 10 / 8.1 / 7

Version information

7.1.1.57

Expected Behavior

LibreWrite and MS Word permit replacing automatically converted long dashes with double dashes -- and leave them in peace. So my expectation travels toward the same behavior: it's all right to automatically replace double dashes with em dash, but once a user has returned to them and re-typed as double dashes, leave them in peace.

Actual Behavior

When I'm writing a document which explains command line parameters which start with double dash, e.g. --param, OnlyOffice automatically converts them to an em dash or long dash whatever you name them. Even if I return to that place in the document where the long dash was inserted, explicitly delete it and type two minuses/dashes --, OnlyOffice immediate converts them to long dash. These steps can be repeated again and again but all in vain - OnlyOffice steadily converts double dashes -- to em dash.

Reproduction Steps

Actual Behavior + Expected Behavior have all these steps

Additional information

I'm wondering how this is related to ONLYOFFICE/DesktopEditors#398.

ShockwaveNN commented 2 years ago

Hi, you can disable this replacement in Settings -> Autocorrect

image

HectorB-2020 commented 2 years ago

Right, but I don't want to. I'm content with OnlyOffice and other document editors place double dashes with wide em dash. What I'm complaining about is that other editors permit returning to the place delete em dash, retype and make it double dash again while OnlyOffice persistently replaces them. In my view OnlyOffice has to memorize places where user explicitly decided to delete em dash and retype double dash instead.

Gingetsu commented 2 years ago

Hello, @HectorB-2020 . Thank you for the enhancement. I created issue 58576 in our private issue tracker.