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:
Eli Zaretskii 2025-05-10 13:11:22 +03:00
parent 1a2c29b531
commit 0d493864ce

View file

@ -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 "<!--")