You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ma...@quick.co.jp on 2003/08/01 02:33:26 UTC

Re: white space on jsp compile

How about pre-processing JSL files by the Ant optional "ReplaceRegexp"
task?

Quoting from the manual,

<replaceregexp match="\s+" replace=" " flags="g" byline="true">
    <fileset dir="${html.dir}" includes="**/*.html" />
</replaceregexp>

this replaces all whitespaces (blanks, tabs, etc) by one blank remaining
the line separator.

If you hack the regular expression, you would be able to delete unnecessary
(in HTML speak) line seperators as well while dealing with <PRE> tags as
exception.







                                                                                                                                
                    "Mike Whittaker"                                                                                            
                    <mike_whittaker@ntl        宛先:   "Struts List" <st...@jakarta.apache.org>                           
                    world.com>                 cc:                                                                              
                                               件名:   white space on jsp compile                                               
                    2003/08/01 04:21                                                                                            
                    "Struts Users                                                                                               
                    Mailing List" へ返                                                                                          
                    信してください                                                                                              
                                                                                                                                
                                                                                                                                




Is there any way to control it? It seems a little excessive

I'd like to retain it in the JSP, and remove as much as possible in the
html

--
Mike W


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






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