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.
This commit is contained in:
Sebastien Vauban 2012-10-02 22:20:36 +02:00 committed by Nicolas Goaziou
parent 2e94271bd1
commit 0408270ad2
1 changed files with 2 additions and 1 deletions

View File

@ -2349,13 +2349,14 @@ from the dynamic block definition."
(or header (or header
;; Format the standard header ;; Format the standard header
(concat (concat
"#+CAPTION: "
(nth 9 lwords) " [" (nth 9 lwords) " ["
(substring (substring
(format-time-string (cdr org-time-stamp-formats)) (format-time-string (cdr org-time-stamp-formats))
1 -1) 1 -1)
"]" "]"
(if block (concat ", for " range-text ".") "") (if block (concat ", for " range-text ".") "")
"\n\n"))) "\n")))
;; Insert the narrowing line ;; Insert the narrowing line
(when (and narrow (integerp narrow) (not narrow-cut-p)) (when (and narrow (integerp narrow) (not narrow-cut-p))