Skip to content

Fix: indent and undent using tab and shift+tab#1174

Closed
etoledom wants to merge 1 commit intodevelopfrom
issue/indent-unident-with-tab-shift-tab
Closed

Fix: indent and undent using tab and shift+tab#1174
etoledom wants to merge 1 commit intodevelopfrom
issue/indent-unident-with-tab-shift-tab

Conversation

@etoledom
Copy link
Copy Markdown
Contributor

@etoledom etoledom commented Apr 18, 2019

This PR fixes indent and undent view Tab / Shift+Tab keys.

Note: So far the unit tests were created, but not fix have been added yet.

Explanation of the issue:

Example indent:

From this initial HTML:

<ul>
    <li>Hello</li>
    <li>world</li>
</ul>

Pressing Tab in the last list item we should get this:

<ul>
    <li>Hello
        <ul>
            <li>world</li>
        </ul>
    </li>
</ul>

But we get this:

<ul>
    <li>Hello</li>
    <li>
        <ul>
            <li>world</li>
        </ul>
    </li>
</ul>

Example undent:

Starting from this HTML:

<ul>
    <li>Hello
        <ul>
            <li>world</li>
        </ul>
    </li>
</ul>

Pressing Shift + Tab in the indented list item we should get the original:

<ul>
    <li>Hello</li>
    <li>world</li>
</ul>

But we get:

<ul>
  <li>Hello </li>
world
</ul>

@etoledom etoledom self-assigned this Apr 18, 2019
@etoledom etoledom closed this Dec 8, 2020
@etoledom etoledom deleted the issue/indent-unident-with-tab-shift-tab branch December 8, 2020 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant