marijnh/CodeMirror — pull request #1694 by mtaran-google (2013-07-22 21:56:31+00:00)
Title: Adding slightly nicer auto-indentation in xml/html mode

These are two changes to how html and xml get indented. The first is that attribute names on a new line will get indented to be in a line with the first attribute. For example, if you start out with this

```html

' to get

```html

```

The option added controls whether to use the new attr name indentation algorithm or the old one, defaulting to the new.

The second change indents multi-line string attr values. For example, if you start with

```html

' you'll get

```html

```

This seems like a generally nicer way of doing things, so I didn't put in an option for disabling it.

Two tests fail with these changes, but I checked and they seem to also be failing at your head. I'm pretty new to working with github, so maybe I didn't check it properly and my change did cause the failures. Hope you can let me know if there are problems! Thanks :)