[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: Blank lines (once more)

Ralf S. Engelschall <rse@engelschall.com> écrit :
> On Fri, Dec 11, 1998, Marc Baudoin wrote:
> > Fritz Zaucker <zaucker@ee.ethz.ch> écrit :
> > > Marc Baudoin <babafou@babafou.eu.org> writes:
> > > 
> > > > I'm very picky about blank lines and I want my HTML the way I've
> > > > decided and the -O0 option (so that pass 8 doesn't strip blank
> > > > lines) is not enough for me.  You can have an idea about my blank
> > > > line paranoia by looking at <URL:http://www.agm-ita.ensta.fr/>.
> > > 
> > > I don't really understand why you care about the blank lines in the
> > > HTML files.
> > 
> > Maybe because i've grown emotionnally attached to them...
> > 
> > More seriously, I use the HTML files from my server as examples
> > when teaching HTML and I want them to be as readable as possible,
> > hence the blank lines.
> >[..]
> Sorry, I've looked at the source of http://www.agm-ita.ensta.fr/, but don't
> see any "blank line paranoia". What's the problem? The source contains the
> blank lines.

Maybe because it's not using WML (yet?).  This is 100% home made HTML.

> And using -O0 doesn't strip them. So, please give us a short
> input example and the -O0 output you dislike plus the output you wish.

Well, I don't need a specific example.  Let's consider this
hypothetic one:


#use wml::mydefinitions
#include "mytemplate.wml"

Here's my HTML code

Bla bla


I plan to use #include'd files as HTML code (with blank lines)
in which various substitutions would be made (TITLE and so on).

I want to keep the blank lines from the #include'd templates.

I plan to use #use'd files only for new tags definitions.  For
readability, the #use'd files would contain blank lines but
I don't want them to get into the final HTML code.

In fact, what I would like is to change the way WML works, because
it can't make the kind of difference I'm interested in right now.

One approach would be to strip blank lines from #use'd files in pass 1
but I'm not sure tag definitions don't include other blank lines
of their own in the substitution pass.

Maybe the sequential model of WML is not suited to what I want to do
and I would need another tool...  But WML is so cool (except for
this blank lines thing) I'd like to find an easy solution for me to
be able to use it.
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com