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:
parent
11ee272ded
commit
2da6792633
1 changed files with 2 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue