Fix reported file time for clock reports
Fix the format specification for clock tables. Niels writes: Bernt was right in that there were more arguments to format than the format string specified. I guess I must not have noticed that there was a call to format (all the other times properties columns are 'maybe inserted' go directly to `insert-before-markers'), and I must have forgotten to test the multifile case (I never used multifile clock reports myself). However, to keep the layout of the table consistent the *File time* cells should be in the Headline column. Attached patch fixes this by putting the (empty) properties cells *before* the *File time* cell.
This commit is contained in:
parent
374b70a383
commit
1de29a0059
|
@ -2162,9 +2162,9 @@ from the dynamic block defintion."
|
|||
(insert-before-markers "|-\n") ; a hline because a new file starts
|
||||
;; First the file time, if we have multiple files
|
||||
(when multifile
|
||||
;; Summarize the time colleted from this file
|
||||
;; Summarize the time collected from this file
|
||||
(insert-before-markers
|
||||
(format (concat "| %s %s | %s*" (nth 8 lwords) "* | *%s*|\n")
|
||||
(format (concat "| %s %s | %s%s*" (nth 8 lwords) "* | *%s*|\n")
|
||||
(file-name-nondirectory (car tbl))
|
||||
(if level-p "| " "") ; level column, maybe
|
||||
(if timestamp "| " "") ; timestamp column, maybe
|
||||
|
|
Loading…
Reference in New Issue