View Single Post
Old 08-18-2014, 10:37 PM   #5
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
@mrmike and diapdealer

Yes, I am used to [Beautify]. It makes it a lot easier to read

PSEP is \u2029 but that didn't seem to help

Peeking into the hex confirms that it's a LF (\x0A). I got sort of a F&R to work. It's not perfect but replace the \n with a space really messed up the code since it did it everywhere, and not just the 20 or 30 places I needed it.

My RegEx is mostly cookbook, i.e. look up a recipe, bake it, and see if I like it

Find: \x0a([^\s?])
Replace: space\1

The lower right corner saying PARAGRAPH SEPERATOR really threw me off (when all else fails, look at the hex)

@anothercat

Obvious to you, but not to me. That works -- thanks very much. Going to be awfully hard for me to remember. Hopefully diapdealer will find the time to add it to his plugin.
phossler is offline   Reply With Quote