ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <>
Subject RE: Removing whitespace in the code
Date Tue, 25 Feb 2003 21:14:35 GMT
Something like that can help:

perl -e "local($/)=undef; $_=<>; s/\s{2,}/ /sg; print $_" <src_file.html

- Alexey.

{   } Alexey N. Solofnenko
Pleasant Hill, CA (GMT-8 usually)

-----Original Message-----
From: Nathan Christiansen [] 
Sent: Tuesday, February 25, 2003 1:09 PM
To: Ant Users List
Subject: RE: Removing whitespace in the code

We had the same problem.

Since we were running an Apache web server, we decided to use mod_gzip
<> as well as whitespace reduction,
and use of browser cacheable external files. The use of mod_gzip cut our
slow connection, long distance, large HTML file (100K+) download time in

However if there is a custom task out there that removes extra whitespace
from JSP/HTML files, I would sure be interested.

Unfortunately, I don't have the time to write one.

-- Nathan Christiansen
   Tahitian Noni International

View raw message