About the Remove Line Breaks
Text copied from a PDF, an email or a narrow column breaks at the end of every line. Paste it here to join the lines back into flowing sentences. Keep paragraphs leaves the blank lines between paragraphs alone, and words split across lines with a hyphen are joined back together.
How to use it
- Paste the text with broken lines.
- Choose Spaces, keep paragraphs to keep paragraph breaks, or Spaces to join everything.
- Copy the result.
Example
- Input
- The report shows a sharp rise in de- mand this year. New paragraph.
- Result
- The report shows a sharp rise in demand this year. New paragraph.
Questions
How does it know where paragraphs are?
A blank line between two blocks of text marks a paragraph. If your PDF has no blank lines between paragraphs, paragraphs cannot be told apart from ordinary line ends, and the text joins into one block.
Will it join real hyphenated words wrongly?
It only joins a hyphen at the very end of a line followed by a lower-case letter, which is how PDFs split words. A hyphen inside a line, as in long-term, is never touched.
Can I replace line breaks with commas?
Use Find and Replace with regular expressions on: find \n and replace with , (a comma and a space).