Skip to content

Ordered list bug when exporting #6471

@AnErrupTion

Description

@AnErrupTion

Describe the bug
When exporting to any format (like PDF), all ordered lists in the document will have this format if there is at least one unordered list in between them:

1. First
* Anything 1
1. Second
* Anything 2
1. Third
* Anything 3

Instead of having 1, 2 & 3 at the start of each ordered item, as would be expected. Essentially, what happens is, if an unordered list is added after an ordered item, the next ordered item will see its number reset, like this:

1. First
* Anything 1
1. Second
2. Third

To Reproduce
Steps to reproduce the behavior:

  1. Create a new document
  2. Add the following text:
1. First
* Anything 1
2. Second
* Anything 2
3. Third
* Anything 3
  1. Export to a format like PDF
  2. Observe the bug

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Server (please complete the following information):
I'm using https://pad.disroot.org/ so I'm unfortunately clueless about the server information.

Desktop (please complete the following information):

  • OS: Arch Linux
  • Browser: Firefox 127.0.1
  • Version: N/A

Additional context
N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions