emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] Clock report produces malformed table when contributed headings co


From: Ihor Radchenko
Subject: [BUG] Clock report produces malformed table when contributed headings contain "|" in their title [9.7-pre (release_9.6.16-1060-g1aa455 @ /home/yantar92/.emacs.d/straight/build/org/)]
Date: Sun, 14 Jan 2024 13:56:08 +0000


Consider the following Org file: #+BEGIN: clocktable :scope file :maxlevel 2 #+END:
* Heading with vertical bar | in its name
:LOGBOOK:
CLOCK: [2018-02-28 Wed 20:28]--[2018-02-28 Wed 22:29] => 2:01 :END:
* Heading without vertical bar \vert in its name
:LOGBOOK:
CLOCK: [2018-02-28 Wed 20:28]--[2018-02-28 Wed 22:29] => 2:01 :END: * src_elisp{"|"} in its name
:LOGBOOK:
CLOCK: [2018-02-28 Wed 20:28]--[2018-02-28 Wed 22:29] => 2:01 :END:

With point at the clock table, press C-c C-c.

Observe:

#+CAPTION: Clock summary at [2024-01-14 Sun 14:53]
| Headline                           | Time           |         |
|------------------------------------+----------------+---------|
| *Total time*                         | *6h 3min*        |         |
|------------------------------------+----------------+---------|
| Heading with vertical bar          | in its name    | 2h 1min |
| Heading without vertical bar \vert in... | 2h 1min        |         |
| src_elisp{"                        | "} in its name | 2h 1min |

Note how the first and last headings produce two table columns instead
of one.

The first heading is relatively easy to fix - we may replace "|" in
title with \vert entity.

Not so easy for src block and other verbatim text - there is simply no
way to escape "|" in tables.


Emacs  : GNU Emacs 30.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.39, 
cairo version 1.18.0)
of 2024-01-13
Package: Org mode version 9.7-pre (release_9.6.16-1060-g1aa455 @ 
/home/yantar92/.emacs.d/straight/build/org/)
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]