Lists are broken when deleting selected text
Asked by Ivan Livadnyi:

We have a [page in Wiki](https://tripster.atlassian.net/wiki/spaces/Experience/pages/57868290) with a number of lists. When I edit it, then select some text and delete it, I find my lists corrupt: some of list items lose their levels (see screenshots)

1. <https://prnt.sc/jik1tv>
2. <https://prnt.sc/jik2rt>
3. <https://prnt.sc/jik1tx>

It doesn't matter, if I use MacOS with Google Chrome, or Linux with Mozilla Firefox -- the result is equal on both OS/Browser combinations.


Answers:
author: Shannon S
body: Hi LIvadnyi,

It appears that in the 3rd screenshot, 1a had been removed, which was a heading for the next few lines, 1ai, 1aii, and so forth. Thus deleting it will then bring the below levels up one.

Does the same occur if you don't delete 1a? It seems like it might be expected behavior there.

Regards,

Shannon

comments: author: Ivan Livadnyi
body: Hello! As i described via screenshot <https://prnt.sc/jik2rt>: I select and delete element

1

a

ii

2

I don't delete the 1a element. So it is not expected, that 1a element is deleted, when I delete 1aii2 element.


author: Shannon S
body: Thank you for confirming that.

I'm trying to replicate on my own instance but I am not able to.

I also noticed that after vi , your list goes straight to i, then another i. So it seems like there may already be an issue with that list.

I can access your instance as an Atlassian employee, so if you could let me know the name of the space or type the name of the page, I can search for it. Unfortunately I am not familiar with typing Cyrillic so I am not able to do this myself.

Regards,

Shannon


author: Ivan Livadnyi
body: A also tried to replicate this bug in another pages, but it repeats only on this page:

<https://tripster.atlassian.net/wiki/spaces/Experience/pages/57868290>

You can find the list, in which I try to delete by *ctrl + F* -\> "nearest_tours"


author: Shannon S
body: Thank you for that!

So there definitely appears to be some hidden formatting that is corrupting the list. If you copied and pasted anything from another site it could cause this.

I determined two workarounds:

1. You can simply delete each character one at a time by backspacing and the same thing won't happen.
2. You can install [Source Editor](https://marketplace.atlassian.com/apps/1215664/source-editor-for-confluence?hosting=cloud&tab=overview).
   1. Once Source Editor is installed, go to the page itself, and in the top-right hand corner a new icon is added:   
      ![Screen Shot 2018-05-18 at 3.18.55 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/22433i61DB0C520D4FBBFA/image-dimensions/210x49?v=v2 "Screen Shot 2018-05-18 at 3.18.55 PM.png")
   2. You can click this, select all, copy the text, and then replace the text again there. Click submit.
   3. Now, when you edit the page you can remove the line as expected.

I can confirm the 2nd option does correct the issue for the entire page. I tested this on my own Cloud instance.

Can you try it on yours? If you have any trouble just let me know and I can help you.

Regards,

Shannon


author: Ivan Livadnyi
body: Hello!

Thank you for workarounds! I knew about the first one, I use it, but sometimes automatically I select and delete (it is just inconvenient).

What I want from Atlassian is to fix this bug in future. Please give me a link to bug, I'd like to subscribe on updates for this bug.

I've tried the second workaround, but I don't found any hidden formatting, that can broke my lists. Do you see it?

Have a nice day!


author: Shannon S
body: Hi Livadnyi,

This isn't a bug in Confluence, but due to copying and pasting content from other sources. This can happen as a result and it's best to reset the content using the 2nd method to clear anything that might have been inadvertently added, visible or not.

In my workaround, the step isn't to search through the content and find anything that doesn't belong there, but rather to copy all text, delete it, and paste it again. This will correct your issue.

Regards,

Shannon


author: Ivan Livadnyi
body: Hi Shannon,

Only now understood, that you recommended open the page with source editor and save it from it. After I do that the problem was disappeared. Now the problem solved, you can close the question.

Have a nice day and thank you for patience :)


author: Shannon S
body: Glad you were able to resolve it, Livandnyi!

Take care.

Regards,

Shannon


Tags: cloud

confluence-cloud

list