Juanjo Conti wrote:
Hi, I am using Django's template engine to produce rtf files and I
have noticed something: if the first line of my template is a {%load
... %} tag then the result has a withe like at the to of it. This is
not a problem in html, the common use of the tempalte engine, but is
fatal in a rtf file.

I write this because I think that this behaibour should bi fixed, am I right?

Anyway I have putted the load tag in the second line of my tempalte :)

Juanjo
The way to fix this is to include the {% load ... %} tag on the same line as something else.

I'm not familiar with the RTF format, but to eliminate the blank line at the top of an html file, you would do this:

   {% load ... %}<html>

instead of

   {% load ... %}
   <html>

Hopefully this helps!


Jeff Anderson

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to