How Do you delete a blank line

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
DRC2
Posts: 1
Joined: Thu May 17, 2007 1:40 pm

How Do you delete a blank line

Post by DRC2 »

How Do you delete a blank line when editing with textpad?
dixonc
Posts: 54
Joined: Mon Feb 02, 2004 3:05 pm

Post by dixonc »

Using the delete key??? Same as every other program? Do you mean as part of a search and replace, i.e. find and remove all blank lines within a file?
Need a bit more info to help :D
ACRobin
Posts: 134
Joined: Fri Nov 04, 2005 9:51 pm
Location: Northumberland,UK
Contact:

Post by ACRobin »

You can map "EditCutline" to a key press. I map "EditCutLine" to "CTL+Y" as this was the convention in the old MS "edit" text editor.

You will need to go to "configure" + "preferences" + "Keyboard" and you will find "EditCutLine" in "Edit".
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

you may want to turn on View/Visible spaces when using the Delete key.

What may "appear" to be a blank line may not actually be blank.

With Visible Spaces enabled, you should see the end of line symbol in the first character position. If not, pressing Delete key is just removing the spaces, not the entire line.
Hope this was helpful.............good luck,
Bob
kitimat
Posts: 45
Joined: Tue Jul 20, 2004 5:44 pm

delete blank line

Post by kitimat »

this works for me:

search for: ^\n

replace with: nothing (leave blank)

this assumes the line is empty, that is no spaces tabs etc.
Harivney
Posts: 3
Joined: Sun Jun 10, 2007 12:46 am

Thanks to Bob Hansen

Post by Harivney »

Bob,
thanks very much for this post on using "view visible" to see if spaces are really spaces. It saved me a lot of time as I thought I was looking at a file with spaces and it turned out to be some other binary characters.
Post Reply