Problem description: Certain modifications realized automatically by auto-correct, such as URL recognition, can't be undone, if they were triggered by inserting a new line, without first undoing the new line.
Steps to reproduce:
1. Make sure you have auto-correct and URL recognition on
2. Type a URL
3. Hit return
4. Undo (CTRL+Z)
Current behavior: the new line is removed but the auto URL formatting stays.
Expected behavior: the opposite, ie the auto URL formatting is removed but the new line stays. That's the behavior, for instance, if you replace "return" by "space" in the steps to reproduce.
Platform (if different from the browser): Win 7 x64
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Thanks for new idea
described behaviour reproduced in 3.5.3. It may be improved. Users may expect that if auto-correction happens, it may be immediately removed by Ctrl-Z.
What is interesting: in msOffice 2007 auto-correction removes first by Ctrl-Z, then removes new line.
(In reply to comment #1)
> described behaviour reproduced in 3.5.3. It may be improved. Users may expect
> that if auto-correction happens, it may be immediately removed by Ctrl-Z.
Actually, for other kinds of auto-correction, it seems to work in that order. For instance if you type a list like this:
- item 1(return)
(CTRL+Z)- item 2
then you'll get to keep your line break.
Another example: if you reproduce this bug's steps but instead of a line break (step 3) type a space, then CTRL+Z removes the URL auto-detection first.
*** Bug 70520 has been marked as a duplicate of this bug. ***
Created attachment 127798 [details]
Screencast showing the bug in LibreOffice 5.1.3 (OpenSUSE)
I was asked to re-check the bug 90645 (which transitively became a duplicate of this bug): The problem wasn't fixed by hoping and waiting ;-)
*** Bug 107734 has been marked as a duplicate of this bug. ***
From my duplicate bug.
1) Open Writer
2) Type 'http://libreoffice.org/'
3) Press spacebar
4) Check undo list and there will be an entry for 'Typing: " "' and 'AutoCorrect'
5) Press undo to remove the auto hyperlinking of the text
6) Press undo a second time to remove the space
7) Press enter
8) Check undo list and there will be 2 entries for 'Apply attributes' and 1 entry for 'New Paragraph'
9) Press undo once will not remove auto hyperlinking as 'New paragraph' is the first undo in the list
So the workaround is to press spacebar, undo, then enter, then remove the space from the previous row.
Build ID: 74ccd02eda2d6325a27266fd935aba29b3d75020
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2;
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-04-27_23:51:14
Locale: en-US (en_US.UTF-8); Calc: group
@Maxim: Would it be simple to move the 'New Paragraph' undo entry before the 'Apply attributes' and any idea why 'Apply attributes' is appearing rather than 'AutoCorrect'?
*** Bug 90645 has been marked as a duplicate of this bug. ***