From: Ihor Radchenko <yantar92@posteo.net>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <87mst8rpc7.fsf@localhost> (raw)
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>
next reply other threads:[~2024-01-14 13:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-14 13:56 Ihor Radchenko [this message]
2024-01-14 20:18 ` [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/)] Mark Barton
2024-01-15 13:04 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mst8rpc7.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.