RE: auto-indenting SGML



> > Something like indent(1) but for DocBook SGML would be majorly cool.
>
> What do the rules for indent look like?  I'm getting a bit
> better at perl,
> and maybe towards the end of the semester this might be a fun
> project.  The
> problem I see right now, is that there's no spec to program
> do.  How much does a tag get indented?

I only want one space per level for me but others might want more.

Does this also line wrap long lines?

> Which tags get indented?

Is all tags that are not linespecific too broad?

>  What about data?

If it was going to also do line wrap then the data would have to follow the
tag level indents.

Phill





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