Fix indentation of XML comments
* lisp/nxml/nxml-mode.el (nxml-compute-indent-in-delimited-token): Fix indentation in XML comments with empty lines. Patch by John Ciolfi <ciolfi@mathworks.com>. (Bug#73206)
This commit is contained in:
@@ -1522,6 +1522,8 @@ of the line. This expects the xmltok-* variables to be set up as by
|
||||
((progn
|
||||
(goto-char pos)
|
||||
(forward-line -1)
|
||||
(while (looking-at "^[[:blank:]]*$")
|
||||
(forward-line -1))
|
||||
(<= (point) xmltok-start))
|
||||
(goto-char (+ xmltok-start (length open-delim)))
|
||||
(when (and (string= open-delim "<!--")
|
||||
|
||||
Reference in New Issue
Block a user