Conversation
I don't know what's the expected behaviour here. The whole list is outdented, so that's correct? |
Actually, yeah, scratch that. I wasn't thinking properly. :)
Yup. I suggest merging one of them, perhaps the one you feel the most confident about, rebasing the other and making sure that everything aligns well. |
825a4b7 to
0bc38a6
Compare
Expected: C returns to level 0, D stays at 0. |
|
@mcsf Ok, this is again outdenting. I'll just fix it here. |
|
I mean rather than go with "it's already an issue in master, let's fix separately", I said, let's just fix it in this PR :) It's fixed now |
|
Yay, thanks for the reviews @mcsf! |
* fix list indentation * Add more tests * Guard against negative lineIndex * Fix outdent error
…rnmobile/372-use-RichText-on-Title-block * 'master' of https://github.com/WordPress/gutenberg: (36 commits) Fixes plural messages POT generation. (#13577) Typo fix (#13595) REST API: Remove oEmbed proxy HTML filtering (#13575) Removed unnecessary className attribute. Fixes #11664 (#11831) Add changelog for RSS block (#13588) Components: Set type=button for TabPanel button elements. (#11944) Update util.js (#13582) Docs: Add accessbility specific page (#13169) Rnmobile/media methods refactor (#13554) chore(release): publish chore(release): publish Plugin: Deprecate gutenberg_get_script_polyfill (#13536) Block API: Parse entity only when valid character reference (#13512) RichText: List: fix indentation (#13563) Plugin: Deprecate window._wpLoadGutenbergEditor (#13547) Plugin: Avoid setting generic "Edit Post" title on load (#13552) Plugin: Populate demo content by default content filters (#13553) RichText: List: Fix getParentIndex (#13562) RichText: List: Fix outdent with children (#13559) Scripts: Remove npm run build from test-e2e default run (#13420) ...

Description
Fixes #13559 (comment). We should check the previous list item's direct children, not the trailing list item, to copy formats from.
How has this been tested?
See #13559 (comment).
Screenshots
Types of changes
Bug fix.
Checklist: