Disable extra display of in nxml-mode (Bug#32897)
* lisp/nxml/nxml-mode.el (nxml-char-ref-display-extra): Don't put display for the newline, it makes the indentation look wrong.
This commit is contained in:
parent
ca14dd1d46
commit
e4cde42657
1 changed files with 3 additions and 1 deletions
|
@ -2378,7 +2378,9 @@ With a prefix argument, inserts the character directly."
|
|||
(put 'nxml-char-ref 'evaporate t)
|
||||
|
||||
(defun nxml-char-ref-display-extra (start end n)
|
||||
(when nxml-char-ref-extra-display
|
||||
(when (and ;; Displaying literal newline is unhelpful.
|
||||
(not (eql n ?\n))
|
||||
nxml-char-ref-extra-display)
|
||||
(let ((name (or (get-char-code-property n 'name)
|
||||
(get-char-code-property n 'old-name)))
|
||||
(glyph-string (and nxml-char-ref-display-glyph-flag
|
||||
|
|
Loading…
Add table
Reference in a new issue