aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/nxml/nxml-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el
index 49dcaecaab5..a2b20b25f4a 100644
--- a/lisp/nxml/nxml-mode.el
+++ b/lisp/nxml/nxml-mode.el
@@ -1370,7 +1370,8 @@ of the inserted start-tag or nil if none was inserted."
1370 "Indent current line as XML." 1370 "Indent current line as XML."
1371 (let ((indent (nxml-compute-indent)) 1371 (let ((indent (nxml-compute-indent))
1372 (from-end (- (point-max) (point)))) 1372 (from-end (- (point-max) (point))))
1373 (when indent 1373 (when (and indent
1374 (/= indent (current-indentation)))
1374 (beginning-of-line) 1375 (beginning-of-line)
1375 (let ((bol (point))) 1376 (let ((bol (point)))
1376 (skip-chars-forward " \t") 1377 (skip-chars-forward " \t")