Bug 165993 - EDITING: The compare document feature marks the whole line as "changed" when replacing the new line (enter) with the line break (shift+enter)
Summary: EDITING: The compare document feature marks the whole line as "changed" when ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 164413 (view as bug list)
Depends on:
Blocks: Word-Line-Break
  Show dependency treegraph
 
Reported: 2025-03-31 18:42 UTC by Mateusz Wlazłowski
Modified: 2025-04-05 05:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
LO and MSO comparison of compare documents (286.47 KB, image/png)
2025-03-31 18:42 UTC, Mateusz Wlazłowski
Details
Original file (11.70 KB, application/vnd.oasis.opendocument.text)
2025-03-31 18:43 UTC, Mateusz Wlazłowski
Details
Modified file (12.12 KB, application/vnd.oasis.opendocument.text)
2025-03-31 18:44 UTC, Mateusz Wlazłowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Wlazłowski 2025-03-31 18:42:48 UTC
Created attachment 200112 [details]
LO and MSO comparison of compare documents

This is a confirmation of the bug from madhavkiran who submitted the bug report at https://bugs.documentfoundation.org/show_bug.cgi?id=164413
I am submitting a new bug report as the old one is not descriptive enough and to avoid confusion when reading from the beginning as there have been discussions unrelated to the issue.



Description:
The compare documents marks the whole line as "changed" when replacing the new line (enter) with the line break (shift+enter).
I include the comparison between LO and MSO using the Compare documents feature 


Steps to reproduce:
1. Open modified_compare.odt
2. Edit->TrackChanges->Compare Documents
3. Choose original_compare.odt and click OK


Actual Results:
Case 1:
The line break was made before the end of the line -> works as intended

Case 2:
The new line (enter) was deleted and a break line (shift+enter) has been added. 
-> The break line along with the next line has been marked as being "pasted" and the next line with the new line has been marked as "cut".

Case 3:
The new line (enter) was deleted and a break line (shift+enter) has been added. In the line that follows the line break, a word has been added "modified"
-> the line break and the following line have been marked as "added", and the following line along with the "new line" have been marked as "deleted"



Expected Results:
As it is shown in Word,

Case 2:
Mark the line break as "added" and the new line as "deleted"

Case 3:
Mark the line break as "added" and the new line as "deleted"
Mark "modified " as "added"


Reproducible: Always


Tested in safe mode


Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded


Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d986127690cf6b61e8973ee37e009a1f0dbbc9ca
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL threaded


Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 2; OS: Windows 11 X86_64 (10.0 build 22621); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 Mateusz Wlazłowski 2025-03-31 18:43:51 UTC
Created attachment 200113 [details]
Original file
Comment 2 Mateusz Wlazłowski 2025-03-31 18:44:09 UTC
Created attachment 200114 [details]
Modified file
Comment 3 Mateusz Wlazłowski 2025-03-31 18:44:41 UTC
*** Bug 164413 has been marked as a duplicate of this bug. ***