The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
I'm having trouble understanding how the Canvas text editor decides how to handle line spacing. The attached screenshots show an example. One renders a larger gap between two bullet points, while the other doesn't.
My experience in this and other cases seems to suggest that the text editor has some kind of internal state that it uses to make these decisions. For example, I've experienced that adding two blank lines and deleting two other blank lines in the same block doesn't necessarily get back the original spacing. I apologize for the lack of reprex; I don't know how it works well enough to get it to happen consistently.
My questions are as follows:
1. Is there a way to manually specify line spacing (in a manner similar to Google Docs)?
2. Is there a place where I can find documentation for the content editor to get a better sense of how it makes these decisions?
PS. In this particular instance, the HTML code suggests that the issue comes from how the list environments were grouped into blocks.
@KellenBrosnahan Do you happen to be pasting this content in from another source? That can sometimes bring in formatting from the source document that gets handled weird in the RCE. If you use the feature Paste and Match Style, it will bring the content over, but match the existing style of the Canvas page. I bet that you can see this visual difference by opening the html mode of the Canvas item.
While there is not a button for line spacing in the RCE, you can alter it via the html.
Your note about the HTML seems to have the solution. These are two separate lists that are next to each other. Presumably the extra space is there from Canvas' style putting automatic padding around lists or between different elements.
Reproducible example using only the RCE:
Canvas is tidying up: we generally don't want unused tags hanging around. What results is that the two separate lists are now right next to each other with nothing in between.
Normally when the user deletes a line between two separate lists of the same type, the RCE automatically merges the two lists. However, when the line is removed through code tidying, the lists stay separate. Charitably, this could be a feature, not a bug, so that people can (for some reason) have separate but adjacent lists.
From James Whalley's suggestion, perhaps if something was cut and pasted from another source, that source included some extra, unused HTML tags that Canvas tidied up in this way.
We can also reproduce this problem in the RCE alone by adding and deleting a table:
Again, the intervening code disappeared but Canvas didn't combine the lists on either side of it.
If you have nested lists or multiple levels, there's some more pain in doing this and recreating those features. In that case, if you feel comfortable editing the HTML, then editing out the extra </ul><ul> tag pairs (or </ol></ol>) would be easier.
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in