summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Vauban <svauban-D0wtAvR13HarG/iDocfnWg@public.gmane.org>2012-10-02 20:20:36 (GMT)
committer Nicolas Goaziou <n.goaziou@gmail.com>2012-10-04 12:13:39 (GMT)
commit0408270ad26c918fb1327650fdf29918ac8da7fa (patch)
tree808ca5c413f4db416dd636e4dbf097505a7c57e2
parent2e94271bd1a77f01b98d038aa28568bde175b740 (diff)
downloadorg-mode-0408270ad26c918fb1327650fdf29918ac8da7fa.zip
org-mode-0408270ad26c918fb1327650fdf29918ac8da7fa.tar.gz
Put the clocktable summary line as a CAPTION
* org-clock.el (org-clocktable-write-default): Insert the summary as a standard #+CAPTION keyword for the (clock) table.
-rw-r--r--lisp/org-clock.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index fc34bf9..e90c1d6 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -2349,13 +2349,14 @@ from the dynamic block definition."
(or header
;; Format the standard header
(concat
+ "#+CAPTION: "
(nth 9 lwords) " ["
(substring
(format-time-string (cdr org-time-stamp-formats))
1 -1)
"]"
(if block (concat ", for " range-text ".") "")
- "\n\n")))
+ "\n")))
;; Insert the narrowing line
(when (and narrow (integerp narrow) (not narrow-cut-p))