#12301: Template adds extra characters when using utf8 file encoding
---------------------------+------------------------------------------------
 Reporter:  anonymous      |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.1       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 I have this setup:
 {{{
 website/
    templates/base.html
    templates/header.html
 }}}
 and all other needed files, but they are not important. In base.html I try
 to include header.html, which had utf8 character, so it threw me an
 exception. I changed header.html file encoding from ansii to utf8, and no
 exceptions, but it adds extra space in the top. It doesn't happen, if I
 write directly into base.html, only then I'm including.

 base.html file looks like this:

 {{{
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
 <html xmlns="http://www.w3.org/1999/xhtml";>
     <head>
         <meta http-equiv="content-type" content="text/html; charset=utf-8"
 />
         <title>test</title>
     </head>
     <body style="margin: 0px; padding: 0px;">
             <div>{% include "header.html" %}</div>
     </body>
 </html
 }}}

 header.html looks like this:

 {{{
 <div style="border: solid 1px;">something</div>
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12301>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to