Ask Your Question

replace new paragraph with space

asked 2015-09-25 07:03:47 +0200

montyw4700 gravatar image

Using Writer, How can I replace the paragraph break character with a space? Many text files I have downloaded, have end-of-paragraph mark at the end of each line. I need to condense the text. MS Office has a box that let you specify which formatting characters to find or find/replace i.e. ;new line or new paragraph, etc.

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2015-09-30 13:11:50 +0200

Alex Kemp gravatar image

updated 2015-09-30 16:58:38 +0200


In general, the Alt find/replace extension has been well-recommended in these pages, but has not been extended beyond support for v4.1.

If this helps then please tick the answer (✔)
...and/or show you like it with an uptick ()

edit flag offensive delete link more

answered 2015-09-30 15:32:13 +0200

Regina gravatar image

updated 2015-09-30 17:07:47 +0200

I know two ways to repair single line paragraphs:

Using regular expressions

  • Mark the lines, which you want to join to a paragraph, otherwise the whole document is used.
  • Goto Edit > Find & Replace
  • Extend the dialog by clicking on "Other Options"
  • Check the option "Regular expressions" (and option "Current selection only", if you work on a marked area only)
  • Enter the character $ into the "Search for" field. Enter a space character into the "Replace With" field.
  • Click "Replace all"

Using AutoCorrect

  • The lines need to be in paragraph style "Default Style". Clear other paragraph styles before continuing.
  • Make sure, that option "Combine single line paragraphs if length greater than 50%" is checked in tab "Options" in the dialog "AutoCorrect Options". You can adjust the value "50%" to a higher value if needed, for example if otherwise some to be headings are caught too. The dialog is in menu Format > AutoCorrect till LO 5.0 and in Tools > AutoCorrect in LO 5.1.
  • Mark the part you want to repair.
  • Goto Format > AutoCorrect again and now use item "Apply". The lines are combined to longer paragraphs and the paragraph style "Text Body" is assigned. Some short lines remain, that are likely headings and you can identify them easily and assign a heading style.
edit flag offensive delete link more


Hi- in the last point I think you wanted to write Goto FormatAutoCorrectApply


pierre-yves samyn gravatar imagepierre-yves samyn ( 2015-09-30 16:02:10 +0200 )edit

It depends on the version. In 4.5 it is in menu Format, but in version 5.1, which I have used for testing, it has been moved over to menu Tools. I have no 5.0 installed to look where it is there.

Regina gravatar imageRegina ( 2015-09-30 16:15:21 +0200 )edit

Still in Format menu for version 5.0, hence my comment... :)

pierre-yves samyn gravatar imagepierre-yves samyn ( 2015-09-30 16:28:30 +0200 )edit

I have changed it.

Regina gravatar imageRegina ( 2015-09-30 17:08:33 +0200 )edit

answered 2017-02-09 23:19:25 +0200

Scot gravatar image

updated 2017-02-09 23:21:39 +0200

Auto-correct method direct from LibreOffice:

However, in release #, the clicks to apply the formatting are: TOOLS > AutoCorrect > Apply.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-09-25 07:03:47 +0200

Seen: 797 times

Last updated: Feb 09 '17