Remove Extra Spaces & Line Breaks · Tutorial
How to fix line breaks in text copied from a PDF
4 min readbeginnerUpdated
You copied a few paragraphs from a PDF report to quote in an email or document, and every line ends abruptly. Some words are even split with a hyphen. This tutorial shows how to turn that text back into normal paragraphs in a few seconds.
What you need
- The Remove Extra Spaces & Line Breaks
- Text copied from a PDF (the Try it button loads two paragraphs about rainwater harvesting)
Steps
Paste the PDF text
Select the text in your PDF reader, copy it and paste it into the left box. Each line from the page arrives as a separate line, and the word "household" is split as
house-andhold.Keep the paragraphs
Choose A space, but keep paragraphs under Replace line breaks with. Lines inside each paragraph are joined with single spaces, and the blank line between the two paragraphs is kept.
Check the hyphenated words
Look at the end of the second paragraph.
house-andholdhave been joined back intohousehold, with no hyphen and no space.Rainwater harvesting can reduce household water use by up to half in some climates. The simplest systems collect water from a roof and store it in a tank for gardens and toilets. More advanced systems filter the water so it can be used for washing, and some include pumps that feed treated water back into the household supply.Copy and paste where you need it
Press Copy and paste into your document or email. The text now reflows naturally to fit the width of the page. If it still has odd spacing, run it through Remove Extra Spaces.
Try it yourself
Opens the Remove Extra Spaces & Line Breaks with this tutorial's sample loaded.
Common mistakes
- Choosing "A space" for multi-paragraph text
- That option joins everything into one long paragraph. Use keep paragraphs whenever the text has more than one.
- Losing list structure
- Bulleted lists in a PDF are also joined into a paragraph. Copy lists separately, or reformat them afterwards.
- PDFs without blank lines between paragraphs
- Some PDFs don't leave a blank line between paragraphs, so they all merge. Add a blank line where each paragraph should start, then convert.
Next steps
Go back to the Remove Extra Spaces & Line Breaks, or keep going with one of these:
FAQ
Will real hyphenated words lose their hyphen?
No. Only a hyphen at the very end of a line, followed by a lowercase letter on the next line, is treated as a split word. "Well-known" on a single line is unchanged.