cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lincoln Mitchell" <>
Subject RE: output indent yes?
Date Thu, 16 Aug 2007 20:28:14 GMT
Good points. However,I installed the Firefox extension but it didn't indent
the code.

> -----Original Message-----
> From: Tobia Conforto []
> Sent: Thursday, 16 August 2007 9:00 PM
> To:
> Subject: Re: output indent yes?
> Lincoln Mitchell wrote:
> > but doesn't indent my html in the xsl file
> <indent>yes</indent> does not actually indent the code, it just adds
> newlines here and there.
> I personally prefer to leave all output unindented (one long line) and
> just *view* it indented when I want to.  This way I don't need to worry
> about newlines being inserted where they shouldn't, possibly causing
> strange layout problems.
> Here is the way I do it, in case you find it useful.  I have configured
> my browser (Opera) to open my text editor (Vim) whenever I choose "view
> source".  Then I have configured Vim so that by typing a shortcut the
> whole file being displayed is passed through xmllint, a tool that can
> re-indent XML.  The Vim config is:  map <M-f> :%!xmllint --format -<CR>
> This has the benefit of alerting me of strange errors, as xmllint is
> very strict about XML syntax.
> Another way is to use this Firefox extension:
> Tobia
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message