From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KACtNPqDl2J2TgAAbAwnHQ (envelope-from ) for ; Wed, 01 Jun 2022 17:21:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +AGuNPqDl2J9zAAA9RJhRA (envelope-from ) for ; Wed, 01 Jun 2022 17:21:30 +0200 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 62F34170F0 for ; Wed, 1 Jun 2022 17:21:30 +0200 (CEST) Received: from localhost ([::1]:43478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwQA5-0000bI-2s for larch@yhetil.org; Wed, 01 Jun 2022 11:21:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwJGB-0002DP-DW for emacs-orgmode@gnu.org; Wed, 01 Jun 2022 03:59:19 -0400 Received: from mail-40141.protonmail.ch ([185.70.40.141]:17826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwJG9-0001fx-8p for emacs-orgmode@gnu.org; Wed, 01 Jun 2022 03:59:18 -0400 Date: Wed, 01 Jun 2022 07:53:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1654070352; x=1654329552; bh=mewc26jGrN+ecHxvihbBAMtt3WxUHQ9dkkyPqLC6VbY=; h=Date:To:From:Reply-To:Subject:Message-ID:Feedback-ID:From:To:Cc: Date:Subject:Reply-To:Feedback-ID:Message-ID; b=HQn/7iIgChmrx5fZhbnp5XjE3A/78WPM8GUizlTnoRDKCHUK+lVgaZQBbetBy39Qu MOY40bP7rZS7sF+HbreoJRiecXOVELZn2Ftvamv/Z/1HrbS7KGogxCPJXCIJlz5nck H9dYxy2LxPECvS1bcATSIQ1FB4amEegQJlEi5GqGP9W0u1CPrEjflyyi1TyifXUFZ0 44RVYaXs5T8UUmaHnqex4+xTcRhf8gqP+ybNilEzGFPfe/qBntrkGznlUAqxpILGLB BUW6tR00MOJngmI3EaBA03rYj6EovOIU0wUcO9px620n2JvITG3jaRYEOFW7844tyQ jghBEuc1B3lUA== To: "emacs-orgmode@gnu.org" From: =?utf-8?B?VG9waSBNw6RlbnDDpMOk?= Subject: Bug report Message-ID: Feedback-ID: 11227809:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.141; envelope-from=topi.maenpaa@protonmail.com; helo=mail-40141.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 01 Jun 2022 11:20:44 -0400 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: , Reply-To: =?utf-8?B?VG9waSBNw6RlbnDDpMOk?= Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654096890; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=mewc26jGrN+ecHxvihbBAMtt3WxUHQ9dkkyPqLC6VbY=; b=F1wf72QklwvS2ZmMM8Hsg3NolpLjrfRrQe71C/VVRvhLSeRrYsadyJwGobnFNjAIafXcJI 2rKppIbwNinLKLBnwEkYDlIPj1E6X2HGj1Mbh+kn7miP49bRDAvV/Qejr7GFyRG/Qp+eLb OJEFHMnLPgCJMvCJcTXSSi9G3UwKPubuWnF3yQxwqOIhSTvzNjlh/bhhlBt3Fx5aMEoSAI jbI5VC1UhYebVa4gozbRWe/HRKEP6JxOhj/8oe7YJ+94TVva8+0Qkh8NuzOJO9W5cMwTKE s0G7Vi0WTV8i8bJiIZafd9yUCiFMATIltNBsNm0tQyP+Q5DdHnMIJkyXorarnA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654096890; a=rsa-sha256; cv=none; b=PEbZKRNJyRuS5hzTqgMHxJFXUGt2ML2UnacbVw4BMmqtC0gGW3ZiAjphDoPJAkGl1b4XqM 1YF/qaltqcMHbzDMID1fRs7yHbNRXaTCMhRpeYaUuhOk7R8yWigFm+dFAqLD7/86bitQaI 1ixxBk+7R3v/0vC3i1QPpUEycnDpDMg9AG0Ts23KHRd4g+NUtotvkBJQgt7U5t8Tp+h55R Dgk6ncii3pxY+o1T5/r2Uv57JAcEO89fqe9PYB0bobu3Xh2UFMdmqm4BRQaG3Xmqnh521M CvAIDMwKiTwZRR3eva/8SI6g33+qLM2XCrRxF9fEF3V82iDesqihn9vAYoPCHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b="HQn/7iIg"; dmarc=pass (policy=quarantine) header.from=protonmail.com; 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" X-Migadu-Spam-Score: -4.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b="HQn/7iIg"; dmarc=pass (policy=quarantine) header.from=protonmail.com; 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" X-Migadu-Queue-Id: 62F34170F0 X-Spam-Score: -4.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6gFT4w5yJGeS * Bug report I have trouble escaping a dollar sign in org-mode documents. I tried to enter the following: #+begin_src A (14 G$) B (6 G$) #+end_src This may look weird to an American viewer, but in Finland we place all units (including monetary units) after the quantity. Anyhow, org-mode interprets this as follows: #+begin_src A (14 G) B (6 G) #+end_src This is the documented behavior: single '$' characters are treated as math delimiters if 1. the enclosed text contains at most two line breaks (there are none). 2. the enclosed text is directly attached to the '$' characters with no whitespace in between (it is). 3. the closing '$' is followed by a whitespace, punctuation or a dash (it is). The standard trick of adding a zero-width space (``) after the first '$' (breaking rule 2 above) doesn't however work as expected: #+begin_src A (14 G$=E2=80=8B) B (6 G$) #+end_src is rendered as #+begin_src A (14 G=E2=80=8B) B (6 G$) #+end_src Changing the zero-width space to a visible space fixes the interpretation, but also visually moves the closing parenthesis. I believe zero-width space is incorrectly interpreted as a non-whitespace here. It does not seem to be an exporter bug as both LaTeX and HTML exporters are affected. Thanks, Topi