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

XML mode won't unindent if autoCloseTags is disabled #9120

Closed
marcelgerber opened this issue Sep 16, 2014 · 1 comment
Closed

XML mode won't unindent if autoCloseTags is disabled #9120

marcelgerber opened this issue Sep 16, 2014 · 1 comment

Comments

@marcelgerber
Copy link
Contributor

(taken from #8980 (comment). I created a new issue as XML/HTML is definitely more of a web language than Verilog)

  1. Go to your brackets.json and set closeTags: false
  2. Create a new file test.xml
  3. Type <name>
  4. On the next line, type </name>

Then try steps 3-4 in http://codemirror.net/mode/xml/

Result:

<name>
    </name>

Expected:

<name>
</name>

That's because in our Editor._checkElectricChars function, we assume languages will only ever use the electric chars ([{, but CM has a per-mode electric chars option (currently only used by XML and Verilog).

@JeffryBooher
Copy link
Contributor

Closing as duplicate of #8980

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

No branches or pull requests

2 participants