emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals-release/org 85aaa19: org-agenda: Make sure that time gr


From: ELPA Syncer
Subject: [elpa] externals-release/org 85aaa19: org-agenda: Make sure that time grid is aligned when hour <10
Date: Sat, 18 Dec 2021 03:57:31 -0500 (EST)

branch: externals-release/org
commit 85aaa19908bbb203ffcaeadd08366c9c3a9fbe4a
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    org-agenda: Make sure that time grid is aligned when hour <10
    
    * lisp/org-agenda.el (org-agenda-format-item): Make sure that hour
    part of begin time in time grid always occupy 5 chars
    
    Fixes 
https://list.orgmode.org/orgmode/3afe1bba.2f48.17c350d0a41.Coremail.tumashu@163.com/
---
 lisp/org-agenda.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 354f408..59bdd5b 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6765,7 +6765,7 @@ Any match of REMOVE-RE will be removed from TXT."
            (setq duration (- (org-duration-to-minutes s2)
                              (org-duration-to-minutes s1))))
           ;; Format S1 and S2 for display.
-         (when s1 (setq s1 (org-get-time-of-day s1 'overtime)))
+         (when s1 (setq s1 (format "%5s" (org-get-time-of-day s1 'overtime))))
          (when s2 (setq s2 (org-get-time-of-day s2 'overtime))))
        (when (string-match org-tag-group-re txt)
          ;; Tags are in the string



reply via email to

[Prev in Thread] Current Thread [Next in Thread]