Extra lines to be removed

Using the Java SDK with TextPad

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

Post Reply
lsaishanker
Posts: 1
Joined: Tue Jun 27, 2006 4:33 pm

Extra lines to be removed

Post by lsaishanker »

Hi,
I have a java file and it developed new line characters between each if statement and the curly bracket all over my code. :(
Is there any way i can get rid of it.


if(req.getParameterValues("screen") != null)
//this is extra space
{

displayabcPage(req, resp, abc);

return;

}




if(req.getParameterValues(xyz) != null)

{

redirectPage(req,resp,JSP, xyz, XYZ);

return;

}

Thanks,
Sai.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Find what: \n\n
Replace with: \n

[X] Regular expression
Post Reply