ether / etherpad-lite

Etherpad: A modern really-real-time collaborative document editor.
http://docs.etherpad.org/
Apache License 2.0
16.58k stars 2.84k forks source link

Ordered list bug when exporting #6471

Open AnErrupTion opened 3 months ago

AnErrupTion commented 3 months ago

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:
  3. First
    • Anything 1
  4. Second
    • Anything 2
  5. Third
    • Anything 3
  6. Export to a format like PDF
  7. 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):

Additional context N/A

heldersepu commented 3 months ago

Confirming I was able to reproduce in pad.disroot.org

The ordered list show as all 1 once exported

ntwaliandy commented 3 months ago

would like to contribute on this! am new here and i was able to install the project and make it run!

SamTV12345 commented 3 months ago

would like to contribute on this! am new here and i was able to install the project and make it run!

Awesome. Happy to have you work on this task.

ntwaliandy commented 3 months ago

would like to contribute on this! am new here and i was able to install the project and make it run!

Awesome. Happy to have you work on this task.

great, confirmed, i will start looking into it!

ntwaliandy commented 3 months ago

@SamTV12345 i tried to reproduce the steps but it seems all was good, i use same pad.disroot.org and tried to export as pdf and results came as expected! checkout the screenshot below! Screenshot 2024-07-14 at 16 57 56

SamTV12345 commented 3 months ago

@SamTV12345 i tried to reproduce the steps but it seems all was good,

i use same pad.disroot.org and tried to export as pdf and results came as expected!

checkout the screenshot below!

Screenshot 2024-07-14 at 16 57 56

Can you reproduce it locally? Maybe that is a new issue?

AnErrupTion commented 3 months ago

@ntwaliandy If you add the ordered list manually, it will work. The bug occurs when using the ordered list feature/button in Etherpad, in the top bar.

ntwaliandy commented 3 months ago

@AnErrupTion thanks for the clarification! looking forward to reproduce the bug and fixing it!

Thanks once again

heldersepu commented 2 months ago

@ntwaliandy did you get any more insights in your troubleshooting?