Indented numbered lists confuse rendering of bullet list

Reported by Oliver Joos on 2012-04-14
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Medium
Unassigned

Bug Description

I use zim rev523 in Ubuntu Natty classic and see problems with mixed lists.
Example: (<TAB> = character '\t')

* bullet line 1
<TAB>Indented normal line
<TAB>1. Indented numbered line 1
<TAB>2. Indented numbered line 2
* bullet line 2

This mixed list will be stored as expected but rendered on-screen like this:

* bullet line 1
<TAB>Indented normal line
<TAB>1. Indented numbered line 1
<TAB>2. Indented numbered line 2
1. bullet line 2

The "bullet line 2" looks like if it starts with the number of the first indented numbered line!

There might exist similar examples where this bug occurs. I also saw issues in numbered lists with indented verbatim lines and blocks, but those are not easy to reproduce. Just ask if more details about other examples would be helpful. Or else I could keep an eye on it after this bug has been fixed.

On Sat, Apr 14, 2012 at 12:07 PM, Oliver Joos <email address hidden> wrote:
> * bullet line 1
> <TAB>Indented normal line

I think the above line is the issue, zim does not support bullet items
to have multiple lines, so this line breaks the list into two lists.
When reading the 2nd list starts with numbered items, so zim assumes
that is what you wanted.

> <TAB>1. Indented numbered line 1
> <TAB>2. Indented numbered line 2
> * bullet line 2

-- Jaap

Oliver Joos (oliver-joos) wrote :

I think multi-line bullet lists would add confusion. I'd prefer an indented numbered list within 2 bullet lists. But the current behavior is even more confusing: Zim ignores indention when deciding the list type (indented numbers not followable by outdented bullets) but restarts numbering when indentation decreases. And the stored .txt contains bullets but Zim shows numbers!?

An improvement would be that numbered lists would end (not just restart at 1.) when TAB-indentation decreases. But I think it would be better to carefully rethink all list types and their reaction to indentation changes, than to implement a quick fix for this bug. Checkbox lists are already very powerful and flexible. IMHO the more similar the different list types behave the better for the user.

I agree with you, it is just that I never considered that you could
start a list indented and then outdent. Assumed there would be higher
level bullets before, but this is not the case because the list is
broken. That is why the parsing goes wrong.

Will add as a test case for the new parser I'm working on.

Changed in zim:
status: New → Confirmed
importance: Undecided → Medium
tags: added: lists
Oliver Joos (oliver-joos) wrote :

BTW since "numbered" lists may also start with letters, this bug might hide even better.
Try these 5 lines:

* write a mail
<TAB>some keywords for mail text
<TAB>with regards,
<TAB>O. Joos
* do other stuff

The last line will be altered to:

* write a mail
<TAB>some keywords for mail text
<TAB>with regards,
<TAB>O. Joos
O. do other stuff

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers