[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] org-clock: Add a trailing space to the mode line string
From: |
Rudolf Adamkovič |
Subject: |
[PATCH] org-clock: Add a trailing space to the mode line string |
Date: |
Thu, 2 Mar 2023 15:14:43 +0100 |
* lisp/org-clock.el (org-clock-get-clock-string): End the mode line
string with a space character to make it play well with other mode
line strings which traditionally end with a space character. For
reference, see the mode line string of the Display Time mode.
---
lisp/org-clock.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index d46458536..0154c9a0c 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -728,9 +728,9 @@ If not, show simply the clocked time like 01:50."
'org-mode-line-clock-overrun
'org-mode-line-clock)))
(effort-str (org-duration-from-minutes effort-in-minutes)))
- (format (propertize " [%s/%s] (%s)" 'face 'org-mode-line-clock)
+ (format (propertize " [%s/%s] (%s) " 'face 'org-mode-line-clock)
work-done-str effort-str org-clock-heading))
- (format (propertize " [%s] (%s)" 'face 'org-mode-line-clock)
+ (format (propertize " [%s] (%s) " 'face 'org-mode-line-clock)
(org-duration-from-minutes clocked-time)
org-clock-heading))))
--
2.39.2
- [PATCH] org-clock: Add a trailing space to the mode line string,
Rudolf Adamkovič <=
- Re: [PATCH] org-clock: Add a trailing space to the mode line string, Max Nikulin, 2023/03/02
- Re: [PATCH] org-clock: Add a trailing space to the mode line string, Ihor Radchenko, 2023/03/03
- Re: [PATCH] org-clock: Add a trailing space to the mode line string, Ihor Radchenko, 2023/03/05
- Re: [PATCH] org-clock: Add a trailing space to the mode line string, Rudolf Adamkovič, 2023/03/05
- Re: [PATCH] org-clock: Add a trailing space to the mode line string, Ihor Radchenko, 2023/03/07
- Re: [PATCH] org-clock: Add a trailing space to the mode line string, Rudolf Adamkovič, 2023/03/07