Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Indentation looks incorrect on the <tr> tag #10770

Open
AJDBenner opened this issue Mar 20, 2015 · 4 comments
Open

Indentation looks incorrect on the <tr> tag #10770

AJDBenner opened this issue Mar 20, 2015 · 4 comments

Comments

@AJDBenner
Copy link

This is what the issue looks like.

demo2

@peterflynn
Copy link
Member

It's expecting the opening <tr> to be indented too. If you press Enter at the end of the <table> line (instead of the beginning of the </table> line as shown above), then the blank line between the two will be indented already, and you'd have to explicitly choose to hit backspace to get them to mismatch that way.

So maybe the bug here is that hitting Enter isn't inserting the correct number of tabs if the cursor isn't at EOL?

@peterflynn
Copy link
Member

Same thing happens here, so it is a bug / missing feature in CodeMirror: http://codemirror.net/mode/htmlmixed/

@AJDBenner
Copy link
Author

I see what you mean about the opening <tr> tag expecting to be indented too. Thanks for taking a look.

@AJDBenner
Copy link
Author

If you set the closeTags preference to true, it resolves this issue. https://github.com/adobe/brackets/wiki/How-to-Use-Brackets#list-of-supported-preferences

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants