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

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

[elpa] externals/org-jami-bot 544bcdf40a 17/22: fix indentation


From: ELPA Syncer
Subject: [elpa] externals/org-jami-bot 544bcdf40a 17/22: fix indentation
Date: Sun, 4 Feb 2024 09:58:52 -0500 (EST)

branch: externals/org-jami-bot
commit 544bcdf40ad072d897a8707063e1f5a27324c984
Author: Hanno Perrey <hanno@hoowl.se>
Commit: Hanno Perrey <hanno@hoowl.se>

    fix indentation
---
 org-jami-bot.el | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/org-jami-bot.el b/org-jami-bot.el
index de97d21580..5423e2af9f 100644
--- a/org-jami-bot.el
+++ b/org-jami-bot.el
@@ -208,15 +208,15 @@ in CONVERSATION id for ACCOUNT id."
          (lines (string-lines body))
          ;; use inactive timestamps
          (timefmt (org-time-stamp-format 't 't)))
-          (if (org-capture-string
-               (format "* TODO %s\nSCHEDULED: %s\n:PROPERTIES:\n:CREATED: 
%s\n:END:\n%s"
-                       (car lines)
-                       (format-time-string (car org-time-stamp-formats))
-                       (format-time-string timefmt)
-                       (string-join (cdr lines) "\n"))
-            org-jami-bot-capture-key)
-           "captured and scheduled!"
-        "error during org-capture :(")))
+    (if (org-capture-string
+         (format "* TODO %s\nSCHEDULED: %s\n:PROPERTIES:\n:CREATED: 
%s\n:END:\n%s"
+                 (car lines)
+                 (format-time-string (car org-time-stamp-formats))
+                 (format-time-string timefmt)
+                 (string-join (cdr lines) "\n"))
+         org-jami-bot-capture-key)
+        "captured and scheduled!"
+      "error during org-capture :(")))
 
 (defun org-jami-bot--command-function-schedule (_account _conversation msg)
   "Capture body as todo entry and schedule it on the date given after the 
command.
@@ -230,16 +230,16 @@ confirmation.  ACCOUNT and CONVERSATION are not used."
          (lines (string-lines body))
          (swhen (org-read-date nil nil (car lines)))
          ;; inactive timestamp
-                  (timefmt (org-time-stamp-format 't 't)))
+         (timefmt (org-time-stamp-format 't 't)))
     (if (org-capture-string
          (format "* TODO %s\nSCHEDULED: %s\n:PROPERTIES:\n:CREATED: 
%s\n:END:\n%s"
                  (cadr lines)
                  swhen
                  (format-time-string timefmt)
                  (string-join (cdr lines) "\n"))
-            org-jami-bot-capture-key)
-           (format "captured and scheduled on %s!" swhen)
-        "error during org-capture :(")))
+         org-jami-bot-capture-key)
+        (format "captured and scheduled on %s!" swhen)
+      "error during org-capture :(")))
 
 (defun org-jami-bot-default-setup ()
   "Set up `org-jami-bot' with default values.



reply via email to

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