Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with ordered list #8

Open
zabousla opened this issue Jul 4, 2023 · 2 comments
Open

Issue with ordered list #8

zabousla opened this issue Jul 4, 2023 · 2 comments

Comments

@zabousla
Copy link

zabousla commented Jul 4, 2023

Hi,
I have an issue with the following case :

Quill code :
`[{"insert":"Bonjour,

Nous avons h??te de vous rencontrer en "},{"insert":"personne","attributes":{"background":"#ffebee","underline":true,"bold":true,"italic":true,"color":"#f44336"}},{"insert":".

Pour s???y rendre, veuillez suivre les indications ci-dessous :

Tourner ?? droite "},{"insert":"
","attributes":{"list":"ordered"}},{"insert":"Tourner ?? gauche "},{"insert":"
","attributes":{"list":"ordered"}},{"insert":"Prendre la sortie 1"},{"insert":"
","attributes":{"list":"ordered"}},{"insert":"Cliquer sur le "},{"insert":"lien","attributes":{"link":"https://google.com"}},{"insert":"
","attributes":{"list":"ordered"}},{"insert":"
Merci et ?? bient??t
"}]`

Generated HTML code :
Bonjour,<br><br>Nous avons hâte de vous rencontrer en <span style='color:#f44336'><i><b><u><span style='background-color:#ffebee'>personne</span></u></b></i></span>.<br><br>Pour s’y rendre, veuillez suivre les indications ci-dessous :<br><ol><li>Tourner à droite </li><li>Tourner à gauche </li><li>Prendre la sortie 1</li></ol><ol><li>Cliquer sur le <a href='https://google.com'>lien</a></li></ol><br>Merci et à bientôt <br>

whitch looks like :

Bonjour,

Nous avons hâte de vous rencontrer en personne.

Pour s’y rendre, veuillez suivre les indications ci-dessous :

  1. Tourner à droite
  2. Tourner à gauche
  3. Prendre la sortie 1
  1. Cliquer sur le lien

Merci et à bientôt

As you cas see, the last element in the ordered list restarts from 1.

Please, can you check and tell me if there is a work arround for it ?

Thank you

@sidhu-patil
Copy link
Owner

This problem occurs because flutter_quill delta output is not properly correct ...
Thank You

@zabousla
Copy link
Author

Thank you for the response. Can you. tell me what is the error in the error in the flutter_quill output in the above example?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants