[Libreoffice-bugs] [Bug 49785] Saving as .docx removes style of last number in numbered list when last paragraph in document

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jan 15 17:57:11 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=49785

--- Comment #11 from Ahiijny <ahiijny at gmail.com> ---
Version: 6.1.4.2
Build ID: libreoffice-6.1.4.2-snap1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-CA (en_CA.UTF-8); Calc: group threaded

When working with .docx files, I see formatting being removed from the numbers
in numbered lists even when it's not the last paragraph. It seems to happen
sometimes when typing.

Steps:
1. New document
2. Change the font (e.g. to Arial 20pt)
3. Start a numbered list using F12 or the "Toggle Numbered List" button from
the Formatting toolbar
4. Type some rows:
    1. one
    2. two
    3. three
    4. four
    5. five
5. Save as .docx
6. Close and reopen file

Observations:
1. The "5." is now Liberation Serif 12pt, unlike the other list numbers.
2. If you click at the end of row 2 and press <Enter>, the "2." also reverts to
Liberation Serif 12pt. Same with any of the other rows.
3. Paste Special > Unformatted text at the end of a row will also cause the
list number to revert to Liberation Serif 12pt.

This <Enter> behaviour happens even if the numbered list was not the last
paragraph in the document.

Also, if there is enough text in the rows to wrap multiple lines, then after
reopening the .docx, even sometimes just typing some text is enough to trigger
the formatting change behaviour. But this is very inconsistent and it doesn't
happen every time.

This particular case happens every time for me, though:

Steps:
1. New document
2. Set font to Arial 10pt
3. Start new numbered list
4. Type "Please prepare the mortgage referencing Standard Charge Terms No.
200033 and with our additional provisions (attached)." and press <ENTER>.
5. Fill out the next several lines with some placeholder text, just to have
more rows to play with.
6. Save as .docx
7. Close and reopen file
8. Replace "200033" with "${terms_number}"
9. Click elsewhere

Observations:
1. The "1." reverts to Liberation Serif 12pt.
2. Interestingly, unlike the formatting reverts caused by <Enter>, the above
typing formatting change cannot be reverted with Undo.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190115/9706809b/attachment.html>


More information about the Libreoffice-bugs mailing list