httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matt farey <matt.fa...@gmail.com>
Subject Re: [users@httpd] Stripping white space from HTML
Date Tue, 13 Mar 2007 13:56:24 GMT


Mike Cardwell wrote:
> * on the Sun, Mar 11, 2007 at 12:21:55PM -0700, Grant wrote:
>
>   
>>>> Right now all I want to do is eliminate all white space from my delivered
HTML.
>>>>         
>>> mod_line_edit might be a better bet, perhaps with a LERewriteRule to
>>> collapse any whitespace of more than one byte to a single space.
>>>       
>> I want to make sure I'm not mis-using the term "whitespace".  What I
>> mean is I want to eliminate all completely blank lines from my
>> delivered HTML.  Would you use mod_line_edit for that?
>>
>> Also, my system delivers HTML in a dynamic way like this:
>>
>> <Location />
>>        SetHandler perl-script
>>        PerlResponseHandler Interchange::Link
>>        PerlOptions +GlobalRequest
>>        PerlSetVar InterchangeServer /path/to/socket
>> </Location>
>>
>> Should I be able to use something like mod_line_edit in conjunction?
>>     
>
> Why not just modify Interchange/Link.pm to not print blank lines? That
> would seem to me to be the best solution. I'm not familiar with
> Interchange::Link, but I just did a quick google and took a look at
> http://preview.tinyurl.com/2f349n
>
> At the end of the "handler" subroutine you'll see to while loops that
> print out the content...
>
> Mike
>
>   
I agree completely Mike, but the OP said he wasn't able to modify the
code, or at least that was my understanding! So we were left with
workarounds.

> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>   

-- 
Matthew Farey



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message