Hi,

On a clocktable with hierarchy (see attached file clocktable-link-bug.org), when ~:link t~ is used, it does not look visually good; that was not an issue with the previous versions of orgmode

Find attached screenshot 2024-09-01_23-05_clocktable-detail.png, that shows the inconsistency in my ~emacs -Q~ with orgmode 9.7.10 and emacs-30 branch with commit 44c2614

Cheers,
pinmacs

* [2024-08-31 Sat]
:PROPERTIES:
:CREATED:  [2024-09-01 Sun 23:00]
:CUSTOM_ID: clocktable-link-bug_2
:END:

** DONE task1
:LOGBOOK:
CLOCK: [2024-08-31 Sat 22:45]--[2024-08-31 Sat 22:56] =>  0:11
:END:

* [2024-09-01 Sun]
:PROPERTIES:
:CREATED:  [2024-09-01 Sun 23:00]
:CUSTOM_ID: clocktable-link-bug_1
:END:

** DONE task2
:LOGBOOK:
CLOCK: [2024-09-01 Sun 22:30]--[2024-09-01 Sun 22:56] =>  0:26
:END:

clocktable with ~:link nil~ shows it fine

#+NAME: my_clocktable_without_link
#+BEGIN: clocktable :maxlevel 4 :scope file :link nil
#+CAPTION: Clock summary at [2024-09-01 Sun 23:03]
| Headline         | Time |      |
|------------------+------+------|
| Total time       | 0:37 |      |
|------------------+------+------|
| [2024-08-31 Sat] | 0:11 |      |
| \_  task1        |      | 0:11 |
| [2024-09-01 Sun] | 0:26 |      |
| \_  task2        |      | 0:26 |
#+END

clocktable with ~:link nil~ shows it bad

#+NAME: my_clocktable
#+BEGIN: clocktable :maxlevel 4 :scope file :link t
#+CAPTION: Clock summary at [2024-09-01 Sun 23:03]
| Headline          | Time |      |
|-------------------+------+------|
| Total time        | 0:37 |      |
|-------------------+------+------|
| [[file:/home/music/clocktable-link-bug.org::*\[2024-08-31 Sat\]][[2024-08-31 Sat]​]] | 0:11 |      |
| \_  [[file:/home/music/clocktable-link-bug.org::*task1][task1]]         |      | 0:11 |
| [[file:/home/music/clocktable-link-bug.org::*\[2024-09-01 Sun\]][[2024-09-01 Sun]​]] | 0:26 |      |
| \_  [[file:/home/music/clocktable-link-bug.org::*task2][task2]]         |      | 0:26 |
#+END

Attachment: OpenPGP_0x9D64597C3A982DCA.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to