Bug 149825 - Add command to insert a paragraph break before table
Summary: Add command to insert a paragraph break before table
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: UNO-Command-New Writer-Tables-Select
  Show dependency treegraph
 
Reported: 2022-07-03 09:01 UTC by Ferdinand
Modified: 2022-07-07 06:58 UTC (History)
3 users (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 Ferdinand 2022-07-03 09:01:42 UTC
Hi
to reproduce
- open word document
- insert table (2x2) - this table is now on top of the page

try to write something above the table - there is no possibility to create space above the table

this is a missing function (or I didn't find it)

workaround:
- mark and cut the complete table
- write something
- paste the table below the text.
Comment 1 Telesto 2022-07-03 10:16:20 UTC
Another workaround: press enter with cursor in the top left cell
Comment 2 Ferdinand 2022-07-03 10:22:38 UTC
indeed this works - 

but IMO it's not intuitive as ENTER usually inserts CR/LF - the opposite of what it is doing in the top left corner
Comment 3 Telesto 2022-07-03 10:30:53 UTC
(In reply to Ferdinand from comment #2)
> indeed this works - 
> 
> but IMO it's not intuitive as ENTER usually inserts CR/LF - the opposite of
> what it is doing in the top left corner

Yes, it's not totally consistent, I would expect enter to be applied within the table cell. 

--

I forgot the other variant: CTRL+Enter in the top left cell. Simply Enter adjust the paragraph Style to Text. With CTRL+Enter you get default Paragraph Style
Comment 4 Telesto 2022-07-03 10:34:47 UTC
@UX: I would expect some bug about this being in the bug tracker.. active or closed WF. I'm kind of throwing this over the fence before using search
Comment 5 LeroyG 2022-07-03 20:46:30 UTC
Tested with:
Version: 7.2.3.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 1; OS: Linux 5.3; UI render: default; VCL: gtk3
Locale: es-MX (es_ES.UTF-8); UI: en-US
Calc: threaded


(In reply to Telesto from comment #1)
> […] with cursor in the top left cell

- <Enter> adds a new paragraph above the table with "Text Body" style
- <Alt>+<Enter> adds a new paragraph above the table with "Default Paragraph Style" style
- <Ctrl>+<Enter> "Insert page break" before the table (apparently does nothing, but see the Undo list)
- <Ctrl>+<Shift>+<Enter> "Insert column break" before the table (apparently does nothing, but see the Undo list)

- <Alt>+<Shift>+<Enter> does nothing (I think; nothing in the Undo list)
- <Ctrl>+<Alt>+<Enter> does nothing (I think; nothing in the Undo list)
- <Ctrl>+<Alt>+<Shift>+<Enter> does nothing (I think; nothing in the Undo list)

A few years ago, before knowing that, my first workaround was to add a row before, then split the table.
Comment 6 Ferdinand 2022-07-03 22:31:49 UTC
IMO in the table menu there should be an entry "Insert line above table".
Comment 7 Heiko Tietze 2022-07-04 08:27:51 UTC
Table cells may contain multiple paragraphs and pressing return inserts a paragraph break (PB) therefore at the current cells. Special behavior was introduced at the very first cell where it enters the PB before the table.

About the proposed command "Insert PB before table" (or the like) I'm a bit split. OTOH it makes sense to have alternatives, in particular when it's easier to figure out. However that's not so clear to me - doubt many users check all table-toolbar entries (if we place the command there). And the interaction is different in that it would not only work at the very first cell.

Btw, Alt+Enter is the only way to insert a PB if the table comes directly after a section. In this case it's not a page break but a paragraph break. Inconsistent implementation. 

I remember that we had a discussion but cannot find a ticket.
Comment 8 Cor Nouws 2022-07-05 12:27:43 UTC
Basically the report is invalid ;)
But, if we can improve.. why not.

Did any look in the Help? The page Table - Positioning explains the behavior in a clear tip.
Comment 9 Ferdinand 2022-07-05 15:11:06 UTC
Hi, 
the problem with "Help" is, that 

1) in general user friendly software must/should be intuitive and not require to read manuals.

2) to find the answer for "Inserting Text Before a Table at the Top of Page" in "Help" the user must know what to search for. IMO this is a basic problem.
search for "table" in "Help" returns 9 pages. not useful.
searching for "before" leads to a meaningful result of 5 results. (Now I know ....)

3) most users would search in "right click" menu or in the table menu to find a solution.
Comment 10 Heiko Tietze 2022-07-07 06:46:49 UTC
The topic was on the agenda of the design meeting. And we agree that having a dedicated command to insert a paragraph break before the table added to the context menu is beneficial for usability.
Comment 11 Ferdinand 2022-07-07 06:58:22 UTC
thanks, great to hear