From 7ca34d2aef42aad1d48692b58f51514e61204fd6 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 23 Jun 2017 13:52:16 +0200 Subject: [PATCH] org-indent: Fix indentation of inline tasks * lisp/org-indent.el (org-indent--compute-prefixes): Fix indentation of inline tasks when `org-inlinetask-show-first-star is non-nil. Reported-by: Rasmus --- lisp/org-indent.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lisp/org-indent.el b/lisp/org-indent.el index 10c96179b..4a22b1505 100644 --- a/lisp/org-indent.el +++ b/lisp/org-indent.el @@ -142,11 +142,11 @@ useful to make it ever so slightly different." ;; Inline tasks line prefixes (aset org-indent--inlinetask-line-prefixes n - (org-add-props (if (bound-and-true-p org-inlinetask-show-first-star) - (concat org-indent-inlinetask-first-star - (substring heading-prefix 1)) - heading-prefix) - nil 'face 'org-indent))) + (cond ((<= n 1) "") + ((bound-and-true-p org-inlinetask-show-first-star) + (concat org-indent-inlinetask-first-star + (substring heading-prefix 1))) + (t (org-add-props heading-prefix nil 'face 'org-indent))))) ;; Text line prefixes. (aset org-indent--text-line-prefixes n -- 2.11.4.GIT