about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2026-06-21 00:53:46 +0100
committerArun Isaac2026-06-21 00:53:46 +0100
commit48bb01a674a8b75d2d9c90ce038ecb294f552ed5 (patch)
tree7768dbcc554c7342408dbec68a8b190386a9b172
parent48b54461a93f88b4ef4e9a9d01325e63f5d541ca (diff)
downloadccwl-48bb01a674a8b75d2d9c90ce038ecb294f552ed5.tar.gz
ccwl-48bb01a674a8b75d2d9c90ce038ecb294f552ed5.tar.lz
ccwl-48bb01a674a8b75d2d9c90ce038ecb294f552ed5.zip
ui: Handle ~A, ~a placeholders case-insensitively.
-rw-r--r--ccwl/ui.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/ccwl/ui.scm b/ccwl/ui.scm
index 3b46a23..976e53d 100644
--- a/ccwl/ui.scm
+++ b/ccwl/ui.scm
@@ -1,5 +1,5 @@
 ;;; ccwl --- Concise Common Workflow Language
-;;; Copyright © 2022, 2023 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2022, 2023, 2026 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of ccwl.
 ;;;
@@ -35,7 +35,10 @@ user."
                   ;; the arguments are strings.
                   (string-replace-substring
                    (string-replace-substring
-                    (formatted-message-format exception)
+                    (string-replace-substring
+                     (string-replace-substring
+                      (formatted-message-format exception) "~A" "~a")
+                     "~S" "~s")
                     "~a"
                     (colorize-string "~a" 'BOLD 'MAGENTA))
                    "~s"