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 [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-users?hl=en
-~----------~----~----~----~------~----~------~--~---