Fix issue with preserving checkboxes whitespace

What does this MR do and why?

Fix issue with preserving checkboxes whitespace

Changelog: fixed

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screen Recording 2024-12-17 at 13.18.51.mov Screen Recording 2024-12-17 at 13.19.49.mov

How to set up and validate locally

  1. In plain text editor, create a checklist with 2 nested items, as done in the video above
  2. Switch to RTE
  3. Check one of the nested checklist items
  4. Switch to PTE
  5. Notice there is no unnecessary indentation

Related to #509910 (closed)

Merge request reports

Loading