all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [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/)]
@ 2024-01-14 13:56 Ihor Radchenko
  2024-01-14 20:18 ` Mark Barton
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2024-01-14 13:56 UTC (permalink / raw)
  To: emacs-orgmode

 
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>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-15 13:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-14 13:56 [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/)] Ihor Radchenko
2024-01-14 20:18 ` Mark Barton
2024-01-15 13:04   ` Ihor Radchenko

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.