Bug Hunting Session
Bug 71501 - EDITING: “Enter“ in first Cell of Table Creates a Paragraph above Table
Summary: EDITING: “Enter“ in first Cell of Table Creates a Paragraph above Table
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks: Writer-Tables
  Show dependency treegraph
 
Reported: 2013-11-11 15:31 UTC by Harald Koester
Modified: 2018-11-05 16:33 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Koester 2013-11-11 15:31:22 UTC
Problem description: 

Steps to reproduce:
[1] Open a new text document.
[2] Insert a table (2 rows, 2 columns).
[3] Insert a word into first cell of table.
[4] Move cursor in front of the word.
[5] “Enter“ in order to create a new paragraph inside the cell. A paragraph above the table is created. Expected: New paragraph inside cell. 

Hints: A paragraph above table can be created with Alt+Enter. See also enhance proposal in bug 51689 according creating paragraphs above and below of tables, indexes and sections.

Operating System: Windows 7
Version: 4.1.2.3 release
Comment 1 Jean-Baptiste Faure 2013-11-16 22:31:50 UTC
Reproducible with the master, 4.1.4.0.0+ and 4.0.6 under Ubuntu but only if the table is at the top of the document ie there is not a paragraph before the table. I think this precision was implicit in the bug description. 

Best regards. JBF
Comment 2 QA Administrators 2015-04-19 03:21:42 UTC Comment hidden (obsolete)
Comment 3 Gordo 2015-04-19 14:10:19 UTC
Still reproducible.

Additionally, the paragraph is created with the Text Body style.  Using Alt+Enter creates a paragraph with the Default Style.

The table doesn't have to be at the beginning of the document.  If you insert a table directly after another table and place the cursor in the first cell of the second table before any text, then pressing Enter will insert a paragraph before the table with the Text Body style.

Windows Vista 64
Version: 4.4.2.2
Build ID: c4c7d32d0d49397cad38d62472b0bc8acff48dd6
Comment 4 Xisco Faulí 2017-09-29 08:50:44 UTC Comment hidden (obsolete)
Comment 5 Jean-Baptiste Faure 2017-10-28 14:10:12 UTC
Still reproducible with current master, but I am not sure if it is still a bug because help for master says:

Inserting Text Before a Table at the Top of Page
If you want to insert text before a table that is at the top of a page, click in the first cell of the table, in front of any contents of that cell, and then press Enter or Alt+Enter.
To insert text after a table at the end of the document, go to the last cell of the table and press Alt+Enter.

Best regards. JBF
Comment 6 Harald Koester 2017-11-01 10:52:08 UTC
(In reply to Jean-Baptiste Faure from comment #5)
> Still reproducible with current master, but I am not sure if it is still a
> bug because help for master says:
> 
> Inserting Text Before a Table at the Top of Page
> If you want to insert text before a table that is at the top of a page,
> click in the first cell of the table, in front of any contents of that cell,
> and then press Enter or Alt+Enter.

It may be that the current function is intended. But I think it's not logical that the function of the Enter key changes in the first cell of a table when the table is at the top of the page. Hence for me still a bug.

Best regards.
Comment 7 QA Administrators 2018-11-02 03:51:12 UTC Comment hidden (obsolete)
Comment 8 Timur 2018-11-05 16:33:00 UTC
Repro 6.2+.