How to insert blank line in between every line
-
Is there a way to easily “double-space” my document by inserting a blank line in between every line I have selected or all lines in the document? I don’t see a one-click solution for this under Edit->Line Operations
-
@Sean-Shaffer
Option Find and Replace
Find: $
Replace: \n
This will add an empty line to each line.
-
Hmmmmmm. Well, that might be bad if the OP is using anything other than Unix/Linux line endings. Plus, I wouldn’t think that the user would want to turn blank lines into a bigger section of blank lines.
I’d try:
Find:
^.+(\R)
Replace:$0\1
Search mode: Regular expression
-
To be better, go with:
Find:
(?-s)^.+(\R)
(…since we don’t know the user’s setting of the
. matches newline
checkbox. The above change makes that checkbox’s setting irrelevant.)
-
Alternatively, a well-placed
?
in the original would have made it okay, even without the(?-s)
and without caring about the checkbox setting:Find:
^.+?(\R)
And no, Peter, repeated postings by me here is not a veiled attempt for more upvotes. :)
-
hmm - what about
find:\R
replace:$0$0
?
;-)
-
For me, that puts too much “blankness” in certain spots (say, between “paragraphs”). But since we have no idea really what the OP wants for this circumstance…
-
I’m editing a list of trackers for torrenting. For better readability, I want each line to be spaced apart. For example,
http://5.79.83.193:2710/announce
http://5.79.249.77:6969/announce
http://37.19.5.139:6969/announce
would become:
http://5.79.83.193:2710/announce
-
Alan Kilborn provided the correct Find/Replace solution. Thank you!