Created
January 29, 2015 21:54
-
-
Save bsima/0ef4f0b4bdd3d5cad526 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The sample text is here: https://gist.github.com/0474c33e403ab243019c | |
Undo justification: replace all newline characters with two spaces | |
regex: "\n\b" | |
subst: "\ \ " | |
Replace all paragraph markers with actual paragraphs | |
regex: "-P-" | |
subst: "\n\n" | |
Substitute two or more spaces with a single space | |
regex: "\ \ +" | |
subst: "\ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing - what I'm noticing is the that while the text is no longer justified, the wrapping of the text is at time occurring mid-word. Is there a way to correct for that?