[Libreoffice-bugs] [Bug 141498] New: Writer Edit Mode ignores style format code to insert individual character format code

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Apr 5 16:08:29 UTC 2021


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

            Bug ID: 141498
           Summary: Writer Edit Mode ignores style format code to insert
                    individual character format code
           Product: LibreOffice
           Version: 7.0.0.1 rc
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: ernest at bywater.net.au

Description:
When in Edit Mode Writer ignores the paragraph style format code of the
paragraph being edited to insert character format code for the text being
entered into the paragraph. If multiple edits are made there are multiple
insertions of individual character format code.

It cuases bloated files due to the excess format code data.

When the file is exported into some formats it causes problems with the
exported text and sometimes corrupts the file. 

Steps to Reproduce:
1.Create text file in Writer with multiple paragraphs.
2. Assign paragraph styles to each paragraph.
3.Save file and close it.
4. Reopen file go to the middle of the text in a paragraph and edit the text.
5. Save the file.
6. Examine the file size and the format code.

Even if the same number of character are replaced the file size changes, and
when you can examine the format code the paragraph has code for all the text in
the paragraph, but in the edited paragraph the added text now has extra format
code for each section of added text that matches the paragraph format code.


Actual Results:
Even if the same number of character are replaced the file size changes, and
when you can examine the format code the paragraph has code for all the text in
the paragraph, but in the edited paragraph the added text now has extra format
code for each section of added text that matches the paragraph format code.

The best way I've found to observe the problem is to export the file into other
format where the format code is also shown. HTML is the easiest to see the
problem.

Expected Results:
Each paragraph has only the paragraph style format code.

Except for the few cases where a change in format is deliberate, such as bold
and italics, but the font type and font size data should not be added inside
the paragraph due to it being in the style format code.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Using

LO 7.1.2.2 - problem first noticed with 7.0.0.1 rc and each version since

Zorin Linux 15.3

AMD Ryzen CPU

Previously reported as Bug 137783, but I didn't word it well and appears to
have been dismissed as a HTML conversion, but the problem lies in the Writer
character attributes and not the HTML conversion process.

-- 
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/20210405/bb5430ca/attachment.htm>


More information about the Libreoffice-bugs mailing list