From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +C2VMHrno2VQJwAAqHPOHw:P1 (envelope-from ) for ; Sun, 14 Jan 2024 14:54:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id +C2VMHrno2VQJwAAqHPOHw (envelope-from ) for ; Sun, 14 Jan 2024 14:54:02 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jVQbCSoH; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705240442; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=yS30CtaL8YNBnBxj7Q2cdQB0dhQCC54i2AxwBk0djA8=; b=GKpXHzySzfSZZ9AdaidKjyUMYbADDqe9TK5hjwlYIoROfFHROdvKHN2Di9BjJWkIekRs6+ 5N9mR+pBoeeigkhifQs3qm9it6tbE3bV8MwjSjukPQOqipvYQDFVvgo1fDzxAQJF+cpjQJ BjDtR38aCmgkq1cr4m1VF404eahPoNlsoygi32h/6IhgmJPcJzzppPMLeAdIM4V7+Kicir cF8qAS8/dGkmwCHZHw+k1NADGpNd/I2fvTFgFBo+0WnKLqVPBkInMa3UXAXH0FqujILbbB sx0x/dtL0V+wXh8k/wYL3bvuwannODl48ZIoo2jyXJXsMf7EFBl1nGO1xpbV9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jVQbCSoH; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705240442; a=rsa-sha256; cv=none; b=o9TT/Fw8JMLpjw9ZGwajiMSY3pgA7LBh5kcqlMSa0rY4OfklBBiIxEk5Sv0/vuey++Y/pQ pNppfwmwq3f6D+dkD92HDPLta++qYp0gIGVx0LE1hZHqwRGDeXHxio4YIeHYsOwkgYQYSP FyOf9laNlZ9rdb6czQt5+CSHifCXGflnlxEnihPl9Tinu5C6uUrJ5oRkhXQEMVfEn2cQ5t NElO238SkF1SSmTI3ayFmnPeB4kf7umxCe3G0tVuYK/ucOUAYNZrJxFVmdehJON0+QCTFI Y1WpB+srY6gP/LbA9HGruNFAHuWq7MNuIDHui+ox9E+LZ62XNo4u6UH7uEyA4g== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B39F537054 for ; Sun, 14 Jan 2024 14:54:02 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rP0vF-0003hr-Gg; Sun, 14 Jan 2024 08:53:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rP0vD-0003hg-2g for emacs-orgmode@gnu.org; Sun, 14 Jan 2024 08:53:07 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rP0vA-00047d-T7 for emacs-orgmode@gnu.org; Sun, 14 Jan 2024 08:53:06 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E7070240027 for ; Sun, 14 Jan 2024 14:53:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705240381; bh=wH8N2D+Wl9+uBQnCZMFl4wu1mEqvzCbFvCi3bL10Urg=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=jVQbCSoHd73GNAFiOIvCPhNThWwl1XDApKMyeGJh/yMdbSHc2FZtXr0PjqC6qNJYG 2heDVFraN8gK1qJvQqO6hECRZQAqopeo/vLzn/BmLO+IK/OC/D2wy2xsdkxJyTfITj guREaFUz+XH+wcYcYcMk684RHj8kLmgGTQRdigEUwdcbZ40biHsT6PiUaBzqRcVhEV pSXPhukD+Bq5JYw3YaA8MQ4pFDTFRy8Cqan7cEgiWHx1NafA6QESEEI4k8F+4TrCEg hxQ/I6b+zyslWkSD5dgPLaOOIUqP5XVLUiuM1xJ5fxg6cCMLsaSekuNolMw2IYM/hk V5k5PbrDXTTEw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TCcDF2F77z6tvw for ; Sun, 14 Jan 2024 14:53:00 +0100 (CET) From: Ihor Radchenko 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 Message-ID: <87mst8rpc7.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.90 X-Spam-Score: -9.90 X-Migadu-Queue-Id: B39F537054 X-Migadu-Scanner: mx12.migadu.com X-TUID: SuirZFwQ6q75 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 . Support Org development at , or support my work at