]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
Emacs: Indent first header line only when indentation is turned on
[notmuch] / emacs / notmuch-show.el
index b0f2d28bd6f02057f6e524d81fdcde5d6b46f864..5015d2ae0b9afdf558fab65103672bcb7b720ee6 100644 (file)
@@ -468,7 +468,10 @@ message at DEPTH in the current thread."
       ;; invisible U+200E LEFT-TO-RIGHT MARK character which forces
       ;; the header paragraph as left-to-right text.
       (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
            " ("
            date