View Single Post
Old 08-10-2016, 03:59 AM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,786
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Doitsu View Post
Since MS Word allows you to search for hard returns with ^p, the easiest solution would be to:

1. Replace all consecutive line-breaks (^p^p) with a dummy character, e.g. ###.
2. Replace all remaining hard line-breaks with spaces.
3. Replace the dummy character (###) with hard line-breaks (^p). (You might have to replace ###### with ### first.)
- if original uses # as a bullet point marker I use @@@ (three snails)

Same technique can be used in plain text files - in that case you look for \n (sometimes \r\n) rather than ^p

BR

Last edited by BetterRed; 08-10-2016 at 04:04 AM.
BetterRed is offline   Reply With Quote