[ic] Pragma no_white working?
emailgrant at gmail.com
Sun Mar 11 22:36:58 EST 2007
> > > Well, my guess is that blank lines are a leftover from processing of
> > > Interchange tags which return no value. And that whitespace isn't
> > > all newlines, there are some spaces on those lines.
> > >
> > > So try something like =~ s/\s*\n+\s*/\n/g;
> > I tried that in the no_blank_lines filter with the same results. I
> > guess the blank lines are being generated after the filtering.
> Well, I don't see how.
> In any case,
> I ran the exact code you showed and it worked for me when I enclosed
> the page in [filter no_blank_lines] .... .. [/filter].
I set up the filter over a portion of code that was generating 3 lines
of blank space, and now it's only generating 2. I'm guessing I need
to include other types of blank line causers in the filter?
> > > No, I mean htmltidy or indent.. external programs used for formatting
> > > input, and not related to apache in any way.
> > >
> > > They are probably slow to run and all, so you won't want them on a
> > > busy site.
> > Are those client programs?
> I don't understand? They are normal programs that, if you'd want them,
> you'd install on the IC server machine, and the client browsers would
> get the finished page as usual, without knowing about it.
How do those programs clean up the code that is delivered after IC
processes it if they don't relate to apache?
More information about the interchange-users