[ZPT] Strange linebreaks

Gregor Hoffleit gregor@hoffleit.de
Tue, 15 May 2001 16:29:06 +0200


Please, could somebody explain to me how and when ZPT inserts linebreaks ?


E.g. when I enter this template (long lines!)

<img tal:attributes="src string:12345678901234567890123456789012.gif; alt string:alttag" arc alt />
<img tal:attributes="src string:123456789012345678901234567890123.gif; alt string:alttag" arc alt />
<img src="123456789012345678901234567" alt="8912345678901234567890.gif" />

it's rendered like that:

<img arc="12345678901234567890123456789012.gif" alt="alttag" />
<img arc="123456789012345678901234567890123.gif"
     alt="alttag" />
<img src="123456789012345678901234567" alt="8912345678901234567890.gif" />

Furthermore, when I now reload the template, it looks like this:

<img tal:attributes="src string:12345678901234567890123456789012.gif; alt string:alttag"
     arc alt src />
<img tal:attributes="src string:123456789012345678901234567890123.gif; alt string:alttag"
     arc alt src />
<img src="123456789012345678901234567" alt="8912345678901234567890.gif" />


At one place, I wanted to work with a very long line (in order to cheat the
browser without using a table). These spurious linebreaks make the line look
very odd, since after the linebreaks, the attributes get aligned, like this:

<img arc alt="alttag" src="1.gif" /><img arc alt="alttag"
                                         src="2.gif" /><img src="3" alt="alttag3" />


Is this intentional ?

    Gregor