Lennart Borgman <lennart.borgman at gmail.com>

(nxml-indent-line): Don't re-indent lines that already have the
correct indentation.  (Bug#859)
This commit is contained in:
Glenn Morris 2008-12-02 03:32:41 +00:00
parent 11ee272ded
commit 2da6792633

View file

@ -1370,7 +1370,8 @@ of the inserted start-tag or nil if none was inserted."
"Indent current line as XML."
(let ((indent (nxml-compute-indent))
(from-end (- (point-max) (point))))
(when indent
(when (and indent
(/= indent (current-indentation)))
(beginning-of-line)
(let ((bol (point)))
(skip-chars-forward " \t")