tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Duffy <duff...@yahoo.com>
Subject Re: removing those blank lines from the output
Date Mon, 07 Jul 2003 18:45:39 GMT

Sorry, but I thought the question had to do with
getting rid of whitespace from JSPs generated at
runtime.  Perhaps I lost the thread. - MOD

--- Yann Cébron <yannc76@yahoo.de> wrote:
> Hi,
> 
> here's a snippet I use in my build.xml after copying
> the JSPs and HTML files
> to the build dir:
> 
>  <replaceregexp match="&gt;\s*&lt;"
> replace="&gt;&lt;" flags="g"
> byline="false">
>       <fileset dir="${build.home}"
> includes="**/*.html,**/*.htm,**/*.jsp"/>
>  </replaceregexp>
> 
> This is not a perfect solution, but it gets you a
> *very* compact HTML output
> and it does not have any runtime-costs like e.g.
> Servlet-filters or other
> tags which strip the whitespace *after* the response
> has been generated.
> 
> HTH,
>     Yann
> 
> "Neil Zanella" <nzanella@cs.mun.ca> schrieb im
> Newsbeitrag
>
news:Pine.LNX.4.44.0307070114370.12996-100000@garfield.cs.mun.ca...
> >
> > Hello,
> >
> > Is there really no NEAT way of removing those
> blank lines left over from
> > JSP tags in the output??? I'm shocked!!! :-()
> >
> > Thanks! :-)
> >
> > Neil
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> taglibs-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message