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

Lists aren't always renumbered when deleting text selections #1034

Open
toolness opened this issue Feb 16, 2018 · 0 comments
Open

Lists aren't always renumbered when deleting text selections #1034

toolness opened this issue Feb 16, 2018 · 0 comments
Assignees
Labels

Comments

@toolness
Copy link
Contributor

To reproduce this issue, create the following numbered list in the editor:

1. One
2. Two
3. Three
4. Four

Then, with the mouse, select the text ne through Thre and press delete.

You should get the following list:

1. Oe
4. Four

The list isn't being renumbered because right now our fixupDoc() function only renumbers lists when it notices that a list item without any content exists. However, when deleting ne through Thre, the resulting document has no empty list items, which means that the renumbering logic won't be executed.

I'm not really sure what the best way to fix this is, but the footnote-renumbering logic I'm working on in #1027 has the same problem.

@yowill yowill added this to the X... Sprint milestone Feb 20, 2018
@yowill yowill added the Medium label Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants