[Zope] rendering of html

Lennart Regebro lennart@regebro.nu
Sat, 9 Feb 2002 16:50:42 +0100


From: "Milos Prudek" <milos.prudek@tiscali.cz>
> <td>
>    <a href="/some/place">
>       <img src="someImage">
>       <...a lot of DTML code here>
>    </a>
>    <...a lot of DTML code here>
> </td>
>
> This renders additional 1 milimeter whitespace on image bottom, making
> it impossible to have two tighthly aligned tables. The only solution is
> reformat the code like this:
>
> <td>
>    <a href="/some/place">
>       <img src="someImage">
>       <...a lot of DTML code here></a><...a lot of DTML code here></td>

Or like this:
    <a href="/some/place">
       <img src="someImage">
       <...a lot of DTML code here
       ></a><...a lot of DTML code here
    ></td>

In other words: the extra whitespace is put *inside* the dtml-tags. Ugly,
but works most of the time.
Stripping whitespace could be nice, but it takes processor power. I think
I'd rather have an external formatting/stripping app.
Then I could strip the whitespace when I'm finished with the dtml-hacking.
:-)