Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-13 Thread Grant
>> > Great news! This was fixed by changing the push line to: >> > >> > push @out, $_ unless /^\s*$/; >> > >> > Thanks a lot for everyone's help. >> >> A 15 byte solution. :) I expected something like that would be simpler >> than running a separate php script to do it all. ;) > > Yeah, that was

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-13 Thread matt farey
Grant wrote: >> > Great news! This was fixed by changing the push line to: >> > >> > push @out, $_ unless /^\s*$/; >> > >> > Thanks a lot for everyone's help. >> >> A 15 byte solution. :) I expected something like that would be simpler >> than running a separate php script to do it all. ;) > > Y

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-13 Thread Vincent Bray
Hi, I'm clearly late to the party but how about not getting apache to strip whitespace so you can read your html and getting your browser to do it instead? Firefox has at least one neat plugin/extension that formats html source into a colourised nested tree format, ignoring (for the most part, i g

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-13 Thread Grant
> Great news! This was fixed by changing the push line to: > > push @out, $_ unless /^\s*$/; > > Thanks a lot for everyone's help. A 15 byte solution. :) I expected something like that would be simpler than running a separate php script to do it all. ;) Yeah, that was my fault. - Grant -

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-13 Thread Mike Cardwell
* on the Tue, Mar 13, 2007 at 09:59:01AM -0700, Grant wrote: > Great news! This was fixed by changing the push line to: > > push @out, $_ unless /^\s*$/; > > Thanks a lot for everyone's help. A 15 byte solution. :) I expected something like that would be simpler than running a separate php scr

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-13 Thread Grant
> > >>> 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 "w

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-13 Thread Grant
> >>> 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"

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-13 Thread Grant
>>> 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

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-13 Thread matt farey
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

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-13 Thread Mike Cardwell
* 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 w

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-12 Thread Grant
> OK I have: > > AddOutputFilter DEFLATE html css cool provided your browser sends the accept header, then this should bring performance and bandwidth benefits, especially for larger pages. (for tiny JSON output the server zip and browser unzip cycle isnt worth it, but CPU is cheap eh?:) Thanks

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-12 Thread matt farey
Grant wrote: >> > Have you used mod_security yourself? >> yes I can say that the code is extremely well written, and that the >> project as a whole has gained critical acclaim. If you are _not_ using >> it, do - it's very useful. The idea is to gain control over a >> problematic and complex appli

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-12 Thread Grant
> Have you used mod_security yourself? yes I can say that the code is extremely well written, and that the project as a whole has gained critical acclaim. If you are _not_ using it, do - it's very useful. The idea is to gain control over a problematic and complex application/codebase by modifying

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-12 Thread matt farey
Grant wrote: >> >> As I understand it, the reason why you wish the whitespace to be >> reduced >> >> is so you look at the source within your browser, and that you >> plan to >> >> use mod_deflate later ro reduce bandwidth (which is surely not too >> much >> >> of a problem - it's probably equiva

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-11 Thread Grant
>> As I understand it, the reason why you wish the whitespace to be reduced >> is so you look at the source within your browser, and that you plan to >> use mod_deflate later ro reduce bandwidth (which is surely not too much >> of a problem - it's probably equivalent to resampling a few of your >>

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-11 Thread matt farey
Grant wrote: >> As I understand it, the reason why you wish the whitespace to be reduced >> is so you look at the source within your browser, and that you plan to >> use mod_deflate later ro reduce bandwidth (which is surely not too much >> of a problem - it's probably equivalent to resampling a

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-11 Thread matt farey
Grant wrote: >> As I understand it, the reason why you wish the whitespace to be reduced >> is so you look at the source within your browser, and that you plan to >> use mod_deflate later ro reduce bandwidth (which is surely not too much >> of a problem - it's probably equivalent to resampling a

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-11 Thread matt farey
Grant wrote: >> As I understand it, the reason why you wish the whitespace to be reduced >> is so you look at the source within your browser, and that you plan to >> use mod_deflate later ro reduce bandwidth (which is surely not too much >> of a problem - it's probably equivalent to resampling a f

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-11 Thread Grant
As I understand it, the reason why you wish the whitespace to be reduced is so you look at the source within your browser, and that you plan to use mod_deflate later ro reduce bandwidth (which is surely not too much of a problem - it's probably equivalent to resampling a few of your images by 5% h

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-11 Thread matt farey
Nick Kew wrote: > On Sun, 11 Mar 2007 11:45:04 -0700 > Grant <[EMAIL PROTECTED]> wrote: > > >>> You'd incur a far lower penalty using a SAX-based parser such as >>> mod_proxy_html or mod_publisher. >>> >> How could you use either of those to eliminate white space in >> delivered HTML?

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-11 Thread Grant
You mean mod_deflate. mod_gzip is obsolete. Ok, mod_deflate. > 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 w

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-11 Thread Nick Kew
On Sun, 11 Mar 2007 11:45:04 -0700 Grant <[EMAIL PROTECTED]> wrote: > > You'd incur a far lower penalty using a SAX-based parser such as > > mod_proxy_html or mod_publisher. > > How could you use either of those to eliminate white space in > delivered HTML? Would implementing the DTD feature of

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-11 Thread Grant
You'd incur a far lower penalty using a SAX-based parser such as mod_proxy_html or mod_publisher. How could you use either of those to eliminate white space in delivered HTML? Would implementing the DTD feature of mod_publisher automatically do it? If the issue is just one of transmitting far

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-10 Thread Nick Kew
On Fri, 9 Mar 2007 17:42:52 -0800 "Mark Lavi" <[EMAIL PROTECTED]> wrote: > The best answer is to correct things at the source in your shopping > cart, file a bug there! > > But in Apache2 you have other potential answers: > > Try http://mod-tidy.sourceforge.net/ and learn about it's parent > pro

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-09 Thread Grant
Try it out and learn to configure Tidy to your liking, don't jump to conclusions! Alright, I was judging it based on its front page info. - You can turn off XHTML compliance, etc. - You might be able to process only your shopping cart directory, etc. to limit it's scope/impact. - You can contr

RE: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-09 Thread Mark Lavi
Mark Lavi, Enterprise Web Management Team @ SGI mailto:[EMAIL PROTECTED] || phone:+1-650-933-7707 -Original Message- From: Grant [mailto:[EMAIL PROTECTED] Sent: Friday, March 09, 2007 6:04 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Stripping white space from HTML > The b

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-09 Thread Grant
The best answer is to correct things at the source in your shopping cart, file a bug there! I've mentioned it to them a couple times now with no luck. But in Apache2 you have other potential answers: Try http://mod-tidy.sourceforge.net/ and learn about it's parent project: Tidy at: http://tid

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-09 Thread Grant
If you're concerned about bandwidth mod_gzip may well give you most of the benefits without the risk of stripping whitespace (in some circumstances browsers _do_ pay attention to it). I plan on setting up mod_gzip at some point too, but I'd really like to be able to browse my live code from the

RE: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-09 Thread Mark Lavi
-Original Message- From: Grant [mailto:[EMAIL PROTECTED] Sent: Friday, March 09, 2007 5:38 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] Stripping white space from HTML Hello, The shopping cart I use produces a lot of white space in my HTML. Is there any way to have apache

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-09 Thread Dmitri Colebatch
If you're concerned about bandwidth mod_gzip may well give you most of the benefits without the risk of stripping whitespace (in some circumstances browsers _do_ pay attention to it). cheers dim On 3/10/07, Grant <[EMAIL PROTECTED]> wrote: Hello, The shopping cart I use produces a lot of white

[EMAIL PROTECTED] Stripping white space from HTML

2007-03-09 Thread Grant
Hello, The shopping cart I use produces a lot of white space in my HTML. Is there any way to have apache2 strip out all that white space? I don't need any of it. - Grant - The official User-To-User support forum of the Apache