how do you delete line breaks

How do you delete line breaks in Writer? I have a document with thousands of them I want to delete all at once. Thank you.

You are talking about SHIFT+ENTER line breaks (just to be sure)?

Hello,

if you are talking about line breaks created using SHIFT+ENTER (↵) use Edit -> Find & Replace:

  • Menu Edit -> Find & Replace
    Find: \n
    Replace: (leave empty)
    Other Options 1: [x] Regular expressions
  • Click Replace All

Recommendation Test on a copy of your document and/or select a portion of your text and use
Other Options 2: [x] Current selection only

Hope that helps.

A space in Replace: might help to avoid unwanted merging of words…

@Lupp: Good point …

See Help page List of Regular Expressions

There you can read