-
Notifications
You must be signed in to change notification settings - Fork 791
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
Numbered list wrong numeration after increase + decrease indent #1974
Comments
@AtlasAutocode , could you please take a look since you might be familiar with this code section? |
Part of the confusion might be that indents are limited to 5 levels (no idea why). It appears that the first list item is implicitly set to 1 even if it is shown as an indented value. I am not familiar with the code, but I guess that there is an overlap between indentation of text and indentation of list items. I see several approaches:
|
Sounds reasonable. I think that the connection between list indentation and list depth is very useful, so it's better not to change it. Also, delta to HTML converter treats such cases as if "text" is not indented too. As for having 5 types of list numeration, I think it's reasonable anyway. One can take the same styles as in |
I was thinking that it might be more logical if indentation of the first item could be handled as an indentation of the whole list. Of course, it is easy for me to suggest this, as I have no idea if this can be done... |
Is there an existing issue for this?
Flutter Quill version
master
Steps to reproduce
Expected results
The last item numeration start from 1.
Actual results
The last item numeration start from 2.
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
Logs
Logs
[Paste your logs here]
The text was updated successfully, but these errors were encountered: