Description: I loose all style and formatting information in saved file when I try to remove direct formatting from text. Steps to Reproduce: 1. Ctrl+A 2. Ctrl+M 3. Ctrl+S 4. Close file 5. Ctrl+O open file which you just saved Actual Results: All formatting lost while it existed before file was closed. Expected Results: Direct formatting removed, style information for every parts remains in-place. Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Created attachment 130019 [details] Testcase file
Reproducible. Version: 5.2.4.1 (x64) Build ID: 9b50003582f07ac674d6451e411e9b77cccd2b22 CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; Locale: es-ES (es_ES); Calc: group Version: 5.3.0.1 (x64) Build ID: 3b800451b1d0c48045de03b5b3c7bbbac87f20d9 CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; Layout Engine: new; Locale: es-ES (es_ES); Calc: group Version: 5.4.0.0.alpha0+ Build ID: d0288a482a3dc0f50f535565e4c66a95bb140942 CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; TinderBox: Win-x86@42, Branch:master, Time: 2016-12-26_23:25:18 Locale: es-ES (es_ES); Calc: CL
Style and formatting information seems to have been removed when saving to ODT, but not when saving to DOC/DOCX.
I tried ODT/RTF/DOC — style information is lost in all cases. IMO this is very critical for users, in my case I lost all formatting in 100+ pages document.
I'm not sure so critical, it's inherited form Ooo, and I couldn't find a bug report about this same matter. And I'm not able to reproduce with other files. Even with the sample file giving again the Heading 2 style for title and Annotation for rest, Ctrl-A plus Ctrl-M, save and reopen and styles are there, so looks as a corner case.
(In reply to m.a.riosv from comment #5) > I'm not sure so critical, it's inherited form Ooo, and I couldn't find a bug > report about this same matter. > > And I'm not able to reproduce with other files. > > Even with the sample file giving again the Heading 2 style for title and > Annotation for rest, Ctrl-A plus Ctrl-M, save and reopen and styles are > there, so looks as a corner case. What version of LO did you try?
Version: 5.2.4.1 (x64) Build ID: 9b50003582f07ac674d6451e411e9b77cccd2b22 CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; Locale: es-ES (es_ES); Calc: group
(In reply to m.a.riosv from comment #7) > Version: 5.2.4.1 (x64) > Build ID: 9b50003582f07ac674d6451e411e9b77cccd2b22 > CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; > Locale: es-ES (es_ES); Calc: group Version: 5.2.4.2 Build ID: 3d5603e1122f0f102b62521720ab13a38a4e0eb0 CPU Threads: 4; OS Version: Linux 4.4; UI Render: default; VCL: gtk2; Locale: en-US (en_US.UTF-8); Calc: group Bug is there, after reopening everything is styled with "Default Style".
Interesting thing related to thing bug which I just discovered: Style information will be lost only if file was saved straight after Ctrl+M, but it looks OK if some other changes were applied to it.
English: Can you create testcase how to create this document? Russian: Можете ли вы создать TestCase, как создать этот документ?
(In reply to seven from comment #10) > English: Can you create testcase how to create this document? > Russian: Можете ли вы создать TestCase, как создать этот документ? Test case is already in the attachment to this bug report.
Same bug on windows Version: 5.3.4.2
I have reproduced the bug (as documented by Timur) in LibreOffice 3.5.7.2. I have found this ticket looking for a bug I have suffered in 5.3 (both Linux & Windows), 4.1 (Windows) & 3.5 (Linux). Steps for reproducing my bug (the same one, I suppose) without a given file: 1. Create new text document. 2. Write "Hello!". 3. Create a new page style ("Untitled1" is OK) with a coloured background. 4. Apply it. 5. Edit > Select All (Ctrl+A). 6. Format > Clear Direct Formatting (Ctrl+M). 7. Save. 8. Close. 9. Open the same document. The page style is not applied! The background is lost! Moreover, the saved file seems to suffer some kind of corruption, at least in some cases that I can't reproduce right now, but last week (in LibreOffice 5.3 on Linux), after step 9, some editing, saving & closing produced a file that Writer couldn't open any more. So I think this bug is very very serious.
(In reply to m.a.riosv from comment #5) > I'm not sure so critical, it's inherited form Ooo, and I couldn't find a bug > report about this same matter. Perhaps this one? >> 47471 | Clear Direct Formatting damages the document's styles BTW, it has reappeared more recently: >> 111002 | Paragraph style lost on save after Clear Direct Formatting (Ctrl+M) or rename and went back to Default And this one may be related too (but no styles involved, just formatting, Ctrl+M & saving): >> 90221 | Formatting not saving after "clear direct formatting"
Still can be reproduced in LO 6.0
Let's dupe to 47471 *** This bug has been marked as a duplicate of bug 47471 ***
Verified with master~2019-01-03_00.08.33_LibreOfficeDev_6.3.0.0.alpha0_Win_x86.
*** This bug has been marked as a duplicate of bug 73483 ***