mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 03:48:10 +01:00
Emacs: Indent first header line only when indentation is turned on
Previously in message-show mode message's first header line (From header) was always indented, even if user had turned thread indentation off with "<" (notmuch-show-toggle-thread-indentation) command. This change modifies notmuch-show-insert-headerline function so that it doesn't indent the first header line if notmuch-show-indent-content variable is nil. This change also modifies tests so that they expect this new output format: test/emacs-show.expected-output/notmuch-show-indent-thread-content-off
This commit is contained in:
parent
0d4a3c7185
commit
adb90b9bb6
2 changed files with 10 additions and 7 deletions
|
@ -468,7 +468,10 @@ message at DEPTH in the current thread."
|
||||||
;; invisible U+200E LEFT-TO-RIGHT MARK character which forces
|
;; invisible U+200E LEFT-TO-RIGHT MARK character which forces
|
||||||
;; the header paragraph as left-to-right text.
|
;; the header paragraph as left-to-right text.
|
||||||
(insert (propertize (string ?\x200e) 'invisible t)))
|
(insert (propertize (string ?\x200e) 'invisible t)))
|
||||||
(insert (notmuch-show-spaces-n (* notmuch-show-indent-messages-width depth))
|
(insert (if notmuch-show-indent-content
|
||||||
|
(notmuch-show-spaces-n (* notmuch-show-indent-messages-width
|
||||||
|
depth))
|
||||||
|
"")
|
||||||
from
|
from
|
||||||
" ("
|
" ("
|
||||||
date
|
date
|
||||||
|
|
Loading…
Reference in a new issue