Modify ↓
#4819 closed defect (duplicate)
ordered lists that start with numbers greater than 9 start at 1
| Reported by: | Harlan Iverson | Owned by: | Christian Boos |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | wiki system | Version: | 0.10.3 |
| Severity: | normal | Keywords: | |
| Cc: | ryano@… | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Lists that are supposed start with any number greater than 9 actually start at 1. Possibly related to #2446.
example:
10. This item should start with ten 1. I should be eleven
output:
- This item should start with ten
- I should be eleven
Attachments (0)
Change History (7)
comment:1 by , 19 years ago
| Milestone: | → 0.12 |
|---|---|
| Priority: | normal → low |
comment:2 by , 18 years ago
comment:3 by , 17 years ago
I can confirm that the proposed patch solves the problem in trac 0.10.3.1
Thank you.
comment:4 by , 16 years ago
| Cc: | added |
|---|
comment:5 by , 16 years ago
comment:6 by , 16 years ago
| Milestone: | next-major-0.1X |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
comment:7 by , 16 years ago
| Resolution: | fixed → duplicate |
|---|
Note:
See TracTickets
for help on using tickets.



The following patch seemed to fix the problem for me:
--- trac/wiki/formatter.py (revision 5695) +++ trac/wiki/formatter.py (working copy) @@ -462,7 +462,7 @@ type_ = 'ul' else: type_ = 'ol' - idx = '01iI'.find(listid) + idx = '0iI'.find(listid) if idx >= 0: class_ = ('arabiczero', None, 'lowerroman', 'upperroman')[idx] elif listid.isdigit():I tried with these test cases:
When it works correctly, the list number should be the same as the list item. Without the patch, the lists are numbered 1,2,3,4.