Opened 19 years ago
Last modified 7 years ago
#1936 new defect
indented ordered and unordered lists have additional bullets and numbers
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | topic-wikiengine |
Component: | wiki system | Version: | devel |
Severity: | normal | Keywords: | bullet lists |
Cc: | vittorio@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
if ordered and unordered lists start indented with more than two spaces, additional bullets and numbers are generated.
examples:
* foo * bar 1. foo 2. bar * foo * bar 1. foo 2. bar
output:
- foo
- bar
- foo
- bar
- foo
- bar
- foo
- bar
if a list entry is indented more than three spaces as the previous list entry, additional bullets and numbers are generated too.
examples:
* foo * bar 1. foo 1. bar
output:
- foo
- bar
- foo
- bar
tested using trunk r2068 and 0.8.4, python 2.3
Attachments (0)
Change History (11)
comment:1 by , 19 years ago
Summary: | indented ordered and unordert lists have additional bullets and numbers → indented ordered and unordered lists have additional bullets and numbers |
---|
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 18 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Yes, this was part of the efforts to better handle "Changelog" style texts, see #124.
comment:4 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
comment:5 by , 18 years ago
Keywords: | bullet list added |
---|---|
Resolution: | duplicate |
Status: | closed → reopened |
The original ticket did not describe desired behaviour. So, the fix removed the original strange behavior (additional bullets), but made the rendering worse for those who edit the wiki text in VIM and use blank lines to separate bulleted list items on each level of list.
Desired behavour: Instead of generating 2, 3, etc bullets for an indented "*", generate a single bullet of level 2, 3, etc. with proper indent.
Example: the wiki text below should produce a correct 3-level bulleted list. Originally, rendered "level 2" had 2 bullets (however, looking like true level 2); after the fix, all levels look like "level 1", and that is bad.
* level 1 * level 2 * level 3 * level 3 * level 2 * level 1
- level 1
- level 2
- level 3
- level 3
- level 2
- level 1
follow-up: 7 comment:6 by , 18 years ago
Milestone: | → 0.11 |
---|---|
Owner: | changed from | to
Status: | reopened → new |
We currently reset the indent when a new paragraph is created by the empty line.
I plan to start soon a refactoring on the Wiki engine (split parse and rendering steps). Meanwhile, it would be better if there were no big changes on the current Wiki engine.
comment:7 by , 18 years ago
Replying to cboos:
I plan to start soon a refactoring on the Wiki engine (split parse and rendering steps). Meanwhile, it would be better if there were no big changes on the current Wiki engine.
OK. I hope that after refactoring, the "desired behaviour" described in my comment from 10/04/2006 will be implemented. Newlines really improve readability and editability of the source text of wiki lists.
comment:8 by , 17 years ago
Milestone: | 0.11 → 0.12 |
---|
WikiEngine refactoring and related fixes postponed.
comment:9 by , 15 years ago
Keywords: | lists added; list removed |
---|---|
Milestone: | next-major-0.1X → 0.13 |
comment:10 by , 14 years ago
Milestone: | 0.13 → 0.14-wikiengine |
---|
comment:11 by , 9 years ago
Owner: | removed |
---|
again tested using trac 0.10, there are no additional bullets and numbers anymore. so this got fixed already.