Coming soon! The Kael'Nyrin Scrolls: The Atlas Edict

Captain Walker

Cleaning up excess paragraph breaks

code, efficiency, microsoft, ms word, saving, software, technology, time, tip

Estimated reading time at 200 wpm: 1 minute

Not everybody needs this! I often have text copied from PDF when I’m working on something. This leads to loads of unnecessary paragraph marks. At other times I have rows of plain text copied from somewhere. It’s a pain to get rid of paragraph marks at the end of each line, yet preserving the correct paragraph breaks. The solution is below.

Whether or not you agree our Fat Disclaimer applies

If it was line breaks (instead of paragraph breaks, this is the code to use in Notepad++ (below) – same methodology.

([^ \t\r\n¬])¬([^ \t\r\n¬])