Fix texts copied from pdf with erroneous line line/paragraph breaks

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 832604
    • Gender:Male
  • point d’amour
Fix texts copied from pdf with erroneous line line/paragraph breaks

Pastemagic - Paste without formatting, fix line breaks, OCR - Free!
Remove Line Breaks Online Tool

In Word you could try:

Find: ^13([!^13])
Replace: [Enter a space character]
(Use Wildcards must be checked)

The above regular expression will work with text that has 1 paragraph mark for erroneous breaks and 2 paragraph marks for "true" paragraphs, like this:

Code: [Select]
This is a line with a paragraph mark at the end
This is a line with a paragraph mark at the end

This is a line with a paragraph mark at the end
This is a line with a paragraph mark at the end
« Last Edit: 13 May, 2022, 20:46:26 by spiros »


 

Search Tools