all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-pretty-entitities t screws up clocktable formatting
@ 2014-09-02 12:02 Joost Helberg
  0 siblings, 0 replies; only message in thread
From: Joost Helberg @ 2014-09-02 12:02 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

The following piece of org-code comes out a bit crooked iff
org-pretty-entities is set:

* testing
  CLOCK: [2014-09-02 Tue 10:54]--[2014-09-02 Tue 12:42] =>  1:48
  CLOCK: [2014-09-02 Tue 09:02]--[2014-09-02 Tue 09:15] =>  0:13
  CLOCK: [2014-09-01 Mon 14:42]--[2014-09-01 Mon 16:47] =>  2:05
** testing indented
  CLOCK: [2014-09-01 Mon 14:34]--[2014-09-01 Mon 14:35] =>  0:01
  CLOCK: [2014-09-01 Mon 12:00]--[2014-09-01 Mon 12:10] =>  0:10
  CLOCK: [2014-09-01 Mon 08:16]--[2014-09-01 Mon 11:30] =>  3:14

* clocktable
#+BEGIN: clocktable :maxlevel 3  :block 2014-W36 :formula % 
#+CAPTION: Clock summary at [2014-09-02 Tue 14:00], for week 2014-W36.
| Headline               | Time   |      |   |     % |
|------------------------+--------+------+---+-------|
| *Total time*           | *7:31* |      |   | 100.0 |
|------------------------+--------+------+---+-------|
| testing                | 7:31   |      |   | 100.0 |
| \emsp testing indented |        | 3:25 |   |  45.5 |
#+TBLFM: $6='(org-clock-time% @2$3 $3..$5);%.1f
#+END:

When my cursor is inside the table and I run M-x org-table-align ,
things come out OK.

Somehow setting the table-write function to:

(defun my-formatter( ipos tables params )
  (progn
    (org-clocktable-write-default ipos tables params)
    (forward-line 2)
    (org-table-align)
    )
  )

doesn't work.

I use Emacs 24.4.50 and org-mode 8.2.7c (20140901).

Can someone point me into a direction in order to fix this in the
org-code? 

regards,

Joost

-- 
Snow B.V.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-02 12:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-02 12:02 org-pretty-entitities t screws up clocktable formatting Joost Helberg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.