Zim

Indented numbered lists confuse rendering of bullet list

Bug #981480 reported by Oliver Joos
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Zim
Confirmed
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.

Tags: lists
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 981480] [NEW] Indented numbered lists confuse rendering of bullet list

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

Revision history for this message
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.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 981480] Re: Indented numbered lists confuse rendering of bullet list

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
Revision history for this message
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  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.