Testcase 6 : xhtml() causes renderer to hang
When I call ``do text from xhtml(HTML)`` with the following HTML code:
<div class="section" id="titel">
<h1>Title</h1>
<div class="
<p class="
<p>Title underline too short.</p>
<pre class="
Title
====
</pre>
</div>
</div>
then appy.pod enters into an endless loop in xhtml2odt.py (HtmlElement.
I guess this is a bug...
You may use the files at
http://
to reproduce this (though I didn't check whether the test.py works without Lino installed).
Luc
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Appy Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Gaëtan Delannay
- Solved:
- 2011-05-17
- Last query:
- 2011-05-17
- Last reply:
- 2011-05-17
Hi Luc,
Indeed, the counter (variable i) allowing to go upward from parent to parent in the list of currently walked tags is not incremented.
What happens if, after line
nextParent = env.currentElem
you insert this one:
i += 1
?
Cheers
Gaetan
Luc Saffre (luc-saffre) said : | #2 |
Ha! The most stupid bugs are the most difficult to find! Thanks for your answer.
Luc Saffre (luc-saffre) said : | #3 |
Thanks Gaëtan Delannay, that solved my question.