On May 5, 2005, at 2:09 AM, Massimo Lusetti wrote:
On 5/4/05, Patrick Casey <[EMAIL PROTECTED]> wrote:
You could do something similar to the DOM writers out
there though
and offer a "prettyprint" flag (false by default) that adds
inserts and
newlines to make the output more human reada
On 5/4/05, Patrick Casey <[EMAIL PROTECTED]> wrote:
> You could do something similar to the DOM writers out there though
> and offer a "prettyprint" flag (false by default) that adds inserts and
> newlines to make the output more human readable. It'd be a useful flag for
> debugging though
rproductive) in
production.
--- Pat
-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 04, 2005 9:52 AM
To: Tapestry users
Subject: Re: IMarkupWriter newline/auto-indent
It doesn't really do that; a lot of HTML from templates shoots through
It doesn't really do that; a lot of HTML from templates shoots through
unchanged. In fact, eliminating whitespace is of more practical use than
generating more of it.
To understand where it is safe to add whitespace (i.e., not inside a )
requires a bit more parsing and tracking of the HTML than
Hi,
Is there some way to let the IMarkupWriter insert newlines and auto-indent?
Because some of my HTML is all on one line now :)
Of course I could add them manually, but in theory the writer can be
smart enough to do this for me.
--