Page 1 of 1

Extra lines to be removed

Posted: Tue Jun 27, 2006 4:43 pm
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.

Posted: Wed Jun 28, 2006 9:40 am
by ben_josephs
Find what: \n\n
Replace with: \n

[X] Regular expression