diff options
| author | Jackson Ray Hamilton | 2015-03-22 08:22:29 -0700 |
|---|---|---|
| committer | Jackson Ray Hamilton | 2015-03-22 20:47:43 -0700 |
| commit | f4c23f458367769ba9a701792fa5720e58827fb4 (patch) | |
| tree | 6fe5febe6ecdc5edf8cef3af006e9af08d7079dd /test | |
| parent | 70a8bbe4437abe9166ba5522437c70791869fc95 (diff) | |
| download | emacs-f4c23f458367769ba9a701792fa5720e58827fb4.tar.gz emacs-f4c23f458367769ba9a701792fa5720e58827fb4.zip | |
Have `sgml-attribute-offset' control SGML attribute indentation
Fixes: debbugs:20161
* textmodes/sgml-mode.el (sgml-attribute-offset): New defcustom.
(sgml-calculate-indent): Use `sgml-attribute-offset' for attribute
indentation.
Diffstat (limited to 'test')
| -rw-r--r-- | test/indent/sgml-mode-attribute.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/indent/sgml-mode-attribute.html b/test/indent/sgml-mode-attribute.html new file mode 100644 index 00000000000..4cbec0af2c6 --- /dev/null +++ b/test/indent/sgml-mode-attribute.html | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | <element attribute="value"></element> | ||
| 2 | |||
| 3 | <element | ||
| 4 | attribute="value"> | ||
| 5 | <element | ||
| 6 | attribute="value"> | ||
| 7 | </element> | ||
| 8 | </element> | ||
| 9 | |||
| 10 | <!-- | ||
| 11 | Local Variables: | ||
| 12 | sgml-attribute-offset: 2 | ||
| 13 | End: | ||
| 14 | --> | ||