Bug 161657 - [DOCX] LibreOffice shouldn't try to import the comment style from DOCX files
Summary: [DOCX] LibreOffice shouldn't try to import the comment style from DOCX files
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-19 14:09 UTC by Rafael Lima
Modified: 2024-06-19 14:09 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Sample DOCX file (12.42 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-06-19 14:09 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2024-06-19 14:09:23 UTC
Created attachment 194823 [details]
Sample DOCX file

LibreOffice has now support for comment styles, which is great.

However, when importing DOCX files, LO shouldn't try to "import" or "guess" the comment style from the DOCX file.

The problem occurs when we have line spacing in the DOCX file, so the comment will now have line spacing as well, which is bad because the comment box is usually small and spacing between lines is not desired.

We should either:
1) Not import line spacing attributes for comment styles of DOCX files, or...
2) When the file is DOCX, assume a default style created by LO on the fly, maybe only using the same font from the standard style in the DOCX file

Steps to reproduce:
1) Open the attached DOCX file (this was created in Word)
2) Insert a comment
3) Write a comment that has multiple lines
4) Notice the spacing between the lines

Expected results:
There should be no spacing between the lines in de default imported comment style

This is especially problematic when reading scientific papers and dissertations, in which the default style almost always uses 1.5 line spacing, and then the comments start having these 1.5 line spacings as well, which is annoying because now in every DOCX I receive, I have to fix the comment style.

System info:

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6b2aaaa6be71b1289521bd2ffd2d4abacecabb87
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded