Deleting Whitespace - Blank Lines

General questions about using TextPad

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

Post Reply
JediKly13
Posts: 2
Joined: Mon Jul 12, 2004 4:12 pm

Deleting Whitespace - Blank Lines

Post by JediKly13 »

One of the FTP programs I used to use had the strange habit of manipulating my web files. It double spaced all the text in the files somehow...for example

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
instead of

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
What I want is all my files to be single spaced but it would take me forever to go back and try to delete each extra line. Is there a regular expression I could use with Textpad (or Wildedit, I'm just checking it out) that could fix this problem for my files? Thanks

Kyle
Ed
Posts: 103
Joined: Tue Mar 04, 2003 9:09 am
Location: Devon, UK

Post by Ed »

Replace
\n\n
with
\n
JediKly13
Posts: 2
Joined: Mon Jul 12, 2004 4:12 pm

Post by JediKly13 »

Should have known it was that simple :D Thanks
Post Reply