[Zope] dtml-var bug ?

Andreas Jung Andreas Jung <andreas@andreas-jung.com>
Tue, 22 Jul 2003 09:18:55 +0200


--On Dienstag, 22. Juli 2003 9:05 Uhr +0200 Thierry Florac 
<thierry.florac@onf.fr> wrote:

>
>   Hi,
>
> I currently use Zope-2.6.1 (on Linux and Solaris) with DTML pages.
>
> I've noticed a curious thing : I have a text property, which I display
> with  <dtml-var myproperty html_quote size=200>, so that only the first
> 200  characters are displayed.
> The problem is that sometimes, the output is truncated in the middle of
> an  HTML tag (generally a <br>), which can be quite confusing for several
> browsers...
>
> Is it a bug ?

This is not a bug since it works as expected and truncates the output
after N bytes. It does not care about HTML or whatever. If you need
a special behaviour you should put additional code into your
application.

-aj