>> > 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
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
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
> 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
-
* 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
> > >>> 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
> >>> 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"
>>> 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
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
* 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
> 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
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
> 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
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
>> 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
>>
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
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
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
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
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?
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
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
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
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
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
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
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
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
-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
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
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
31 matches
Mail list logo