Bug 96381 - Numbering paragraph with an enter in-between
Summary: Numbering paragraph with an enter in-between
Status: RESOLVED WONTFIX
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:
 
Reported: 2015-12-10 09:24 UTC by Óvári
Modified: 2020-10-07 20:04 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Numbering paragraphs example (10.17 KB, application/vnd.oasis.opendocument.text)
2015-12-10 09:24 UTC, Óvári
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Óvári 2015-12-10 09:24:41 UTC
Created attachment 121187 [details]
Numbering paragraphs example

It would be nice if LibreOffice Writer could see when paragraphs are written with an Enter between paragraphs. So pressing Enter at the end of this paragraph would leave an Enter between this paragraph and the next paragraph starting with the next number.

Tested with:
Version: 5.1.0.0.beta2+
Build ID: afa8fec8367c747cbf50d81fe836dd1679b85867
Threads 2; Ver: Windows 6.2; Render: GL; 
TinderBox: Win-x86@62-merge-TDF, Branch:libreoffice-5-1, Time: 2015-12-09_23:10:03

Version: 5.0.4.1 (x64)
Build ID: 2def61bcbb29a7a8611b833682fe1291910b11ad

Thank you
Comment 1 Jacques Guilleron 2015-12-10 10:42:46 UTC
Hi  Óvári,

This feature exists. You have to select 
Bullets and Numbering from
View > Toolbar and use 
Insert Unnumbered Entry button.
A shortcut can be added if you have a frequent usage.

Regards.
Comment 2 Óvári 2015-12-10 18:43:26 UTC
(In reply to Jacques Guilleron from comment #1)
> Insert Unnumbered Entry button.
Then pressing Enter, the next numbered entry is not shown.

This enhancement suggestion is for LO Writer to automatically insert an unnumbered entry and a numbered entry after pressing Enter when the cursor is anywhere in the numbered paragraph 2 or 3 in the attachment entitled "Numbering paragraphs example".

Thank you
Comment 3 Jacques Guilleron 2015-12-11 09:48:31 UTC
OK. I change Status to NEw and Importance to Enhancement.

Have a nice day.
Comment 4 Oliver Specht (CIB) 2015-12-16 15:07:07 UTC
I have my doubts that this very special enhancement will ever be implemented.
Until that happens I propose to set a 1 line spacing below paragraph to the numbered paragraphs. 
See Format/Paragraph/Indents&Spacing - Spacing - Below paragraph
(Or create a paragraph style with that setting)
Comment 5 Óvári 2015-12-16 19:36:01 UTC
(In reply to Oliver Specht from comment #4)
> I propose to set a 1 line spacing below paragraph to the numbered paragraphs. 

Thank you Oliver Specht for your proposed workaround.

Below is a use case for this enhancement which unfortunately does work with your proposed workaround.

LibreOffice can be used to write emails which are then copy and pasted into Thunderbird. Just pasting produces formatting with strange results.

Selecting 'Paste[d] without formatting' in Thunderbird helps. However, paragraph spacing is not preserved with 'Paste without formatting'.

An unnumbered Enter between numbered paragraphs would be convenient as this would enable Thunderbird and LibreOffice to look the same without extra formatting before sending an email.

Thank you
Comment 6 Oliver Specht (CIB) 2016-03-11 15:32:00 UTC
So I have another workaround:

At the end of the paragraph press <Enter> <Backspace> <Space> <Enter>

The backspace removes the number, the space makes sure that the last enter does not remove the numbering completely.
Comment 7 Óvári 2016-03-12 22:08:34 UTC
(In reply to Oliver Specht (CIB) from comment #6)
Thank you Oliver Specht (CIB) for providing a workaround until bug 96381 has been fixed.

For (bullets and numbering) outline list that have ~100 items, the workaround would require ~400 extra steps.

When LO is in Bullets and Numbering mode and an Enter is pressed, LO could look at the previous paragraph (if the current paragraph is not the first paragraph). If the previous paragraph has no content, then LO Writer could insert an Enter before the next Bullet/Number.


Pseudo code
===========

IF ( ( Mode(Bullet) OR Mode(Numbering) ) AND 
     ( Number(CurrentParagraph) > 1 ) AND 
     ( WordCount(CurrentParagraph--) == 0 ) AND
     ( KeyPress == <Enter> )
   ) {

  <Enter> <Backspace> <Space> <Enter>
  Delete <Space> in previous paragraph

}


Caveats:
1. Need to ensure that Undo works correctly.
2. The pseudo code may need work using better constructs available in LO to ensure high performance/speed, i.e. LO does not slow down when performing this operation.


Thank you
Comment 8 BogdanB 2020-10-07 17:42:44 UTC
Another idea is to change the space between paragraph to have the hight of a row, so, in this case all will work ok.