Comment 2 for bug 1067604

Revision history for this message
Stefan Hammer (j-4-deactivatedaccount) wrote :

Must be somewhere in NoteXMLContentBuilder.java: starts at line 183

My testcase:
Created a note on tomboy
<note-content version="0.1">Hi
<list><list-item dir="ltr">Test me</list-item>
<list-item dir="ltr">more</list-item>
</list></note-content>

Open on tomdroid and add one line (no bullets, text is "Even more". Leads to this (and crash):

<note-content>
<list><list-item dir="ltr">Test me</list-item dir="ltr">
</list>
<list-item dir="ltr">more</list-item dir="ltr">
<list-item dir="ltr"></list-item dir="ltr">
<list-item dir="ltr">Even more</list-item dir="ltr">
</note-content>

So the main problem is, that the list is closed too early. Further, there is a empty list-item. My new line is added as a list-item.