My first thought is "what's in {{ item.inleiding }}". If it included the <p></p>, then it would be displayed when you rendered that down.
Do something like: <hr/> {{ item.inleiding|escape }} </hr> to isolate that element and see what "pops out". On 5/7/07, Enquest <[EMAIL PROTECTED]> wrote: > > Consider the following code > > 9 {% for item in news %} > 10 <div class="c_nieuws"> > 11 <h2>{{ item.titel }}</h2> > 12 <p> > 13 {{ item.inleiding }} <a class="lees_meer" > href="/in-de-pers/{{ item.slug }}/"> › lees meer</a> > 14 </p> > 15 </div> > 16 {% endfor %} > > > > The template result in the browser is: > > <div class="c_nieuws"> > <h2>testf</h2> > <p></p> > <p>jfklsdjkfsfjsjfkskl<br>fdsfsdfsdfs</p><p><br>sfsfsdfs </p> > <a class="lees_meer" href="/in-de-pers/testf/"> lees meer</a> > </div> > > The "lees meer" a href is printed outside the <p></p> tags... How can > this be... Clearly the code places it inside the <p></p> yet "a href" is > outside... > The text is "jklsjkfjksl" is made with tinymce for each enter it places > <p></p> but even then there should be a </p> tag on the end. > > If I however replace the inner <p></p> with <br> then this problem does > not occur. > > What could be the cause of this problem. > > thanks, > Enquest > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---