Bug 76232 - Table: Merging Two Cells Leads to an Additional Line Break
Summary: Table: Merging Two Cells Leads to an Additional Line Break
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Tables
  Show dependency treegraph
 
Reported: 2014-03-16 14:55 UTC by A (Andy)
Modified: 2021-08-23 10:38 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A (Andy) 2014-03-16 14:55:33 UTC
Problem Description: 
If you merge two cells (first is empty and the second is with text) then you get an additional line break.

Steps to Reproduce:
1. Open WRITER
2. Go to TABLE -> INSERT -> TABLE
3. Press INSERT to insert a 2 x 2 table
4. Go to the cell in row 1 and column 2 and write "Test", keep attention that the cell in row 1 and column 1 is empty 
5. Select the complete first row and make a right mouse click
6. Go to CELL -> Merge

Result:
The first row has to lines (one empty line with a line break and a second line with the word "Test")

7. Now select the second row, keep attention that this row is completly empty
8. Make a right mouse click and go to CELL -> MERGE

Result:
The second row is merged and it is still correctly only one line.

Expected Behavior:
In the first case if the first cell is empty (no character, even no blank character) then there should be no additional line break leading to two lines.
              
Reproduced with LO 4.2.1.1 (Win 8.1)
Comment 1 Thomas van der Meulen 2014-03-21 13:46:01 UTC
Thank you for your bug report, 

I can reproduce just like the explained in the bug running 
Version: 4.2.3.1
Build ID: 3d4fc3d9dbf8f4c0aeb61498a81f91c5b7922f13
OS: Mac osx 10.9.2
Comment 2 Joel Madero 2015-05-02 15:43:00 UTC Comment hidden (obsolete)
Comment 3 Gordo 2015-05-14 12:50:27 UTC
Still reproducible.


    A      B      C
1| test |      |
----------------------
2|      | test |
----------------------
3|      |      | test

In the above example table, if you merge:
- A1 and B1 then there is no extra paragraph after test
- A2 and B2 then there is an extra paragraph before test (Andy's example)
- B1 and B2 then there is an extra paragraph before test
- A1, B1, and C1 then there is no extra paragraph after test
- A1, A2, and A3 then there is no extra paragraph after test
- A3, B3, and C3 then there is an extra paragraph before test
- C1, C2, and C3 then there is an extra paragraph before test

Version: 4.4.3.2
Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16
Comment 4 QA Administrators 2016-09-20 09:41:38 UTC Comment hidden (obsolete)
Comment 5 Telesto 2017-01-25 18:13:44 UTC
Confirming with:
Version: 5.4.0.0.alpha0+
Build ID: 79497f458727a0dea983847fe9d3873bf9c2e972
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-01-24_03:10:09
Locale: nl-NL (nl_NL); Calc: CL

and with:
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 6 QA Administrators 2018-01-26 03:27:13 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2020-01-27 03:26:40 UTC Comment hidden (obsolete)
Comment 8 BogdanB 2021-08-23 10:38:08 UTC
REPRO in
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 5b025285b3528910a4360899abb2bbbaadc72c97
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded