aboutsummaryrefslogtreecommitdiff
path: root/modules/org-capture-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-03 19:28:36 -0500
committerCraig Jennings <c@cjennings.net>2026-05-03 19:28:36 -0500
commit52106ee766d2a2fb32e5981a7b0e14e5fa616626 (patch)
tree02710af7d57f07406808a0df4ef26e69b03986d4 /modules/org-capture-config.el
parent58fa38cfbff9ea677826c3b8f36de4524003dfa5 (diff)
downloaddotemacs-52106ee766d2a2fb32e5981a7b0e14e5fa616626.tar.gz
dotemacs-52106ee766d2a2fb32e5981a7b0e14e5fa616626.zip
fix: close drill capture template source link
The "d" drill capture template had a malformed source link with only one closing bracket and a literal `n` where a newline should have been: Source: [[%:link][%:description] nCaptured On: %U So new drill captures wrote a broken link and `nCaptured On:` instead of a clean `Captured On:` line on the next row. I closed the link with the missing `]`, and removed the stray `n` so the line break before "Captured On" is just a real newline. The "f" (PDF drill) template was already correct, so I left it alone. I added `tests/test-org-capture-config-drill-template.el`. It loads the module, picks up the "d" template, and asserts both the closed link and the `\nCaptured On: %U` form, plus negative assertions against the broken pre-fix shapes.
Diffstat (limited to 'modules/org-capture-config.el')
-rw-r--r--modules/org-capture-config.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/org-capture-config.el b/modules/org-capture-config.el
index 755eecafb..c20504f04 100644
--- a/modules/org-capture-config.el
+++ b/modules/org-capture-config.el
@@ -130,8 +130,8 @@ Captured On: %U"
(completing-read "Choose file: " files)
drill-dir))))
"* Item :drill:\n%?
-** Answer\n%i\nSource: [[%:link][%:description]
-nCaptured On: %U" :prepend t)
+** Answer\n%i\nSource: [[%:link][%:description]]
+Captured On: %U" :prepend t)
("f" "Drill Question (from PDF)" entry
(file (lambda ()