From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SMplBbSuF2V8oQAAG6o9tA:P1 (envelope-from ) for ; Sat, 30 Sep 2023 07:14:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SMplBbSuF2V8oQAAG6o9tA (envelope-from ) for ; Sat, 30 Sep 2023 07:14:28 +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 805F340DE8 for ; Sat, 30 Sep 2023 07:14:26 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fizz.buzz header.s=fm1 header.b=x2k00QBE; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=K4X5p81v; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696050868; 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=Y9Z169KGRDb9G+HVmmMRPxsNEILgzmi9UB3S2zlzQ08=; b=Ccgr01q2K+8yfpwoTI0jZILAI1SmWH/akFJEplyh5zIv32lo8vnNUdOPGsl18j8Xlc/Bd/ 2LYBRarJj2+emSmarMlVhpIpUHpHL819HtxUU0N5Nu6PG2cOlJOkmtAVfTdLLlZO7otHS9 JveJmTlv7fuhj9jEXFZhO6Sf5sIYx3IX+8c2tVh4Xk2TPgXaQ8P5Px9atmF5Ika9jNZBUe jF8ixjSRX0jtNq57sEQ0U4jkOf2YOTPzaRpJnFlYhxtrDOz2K9MqWBcdoGNlPKGsAySFZ5 WgdYnCKC+ca8yBSjUy7Wd3uxIgSKFPKkhxl7ABzfSnua02qG8VZm8awGHnUb7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fizz.buzz header.s=fm1 header.b=x2k00QBE; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=K4X5p81v; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696050868; a=rsa-sha256; cv=none; b=bAOPvRJQzKlOQa2zHii5aI7ClfUcNvvWh5Wb9BsFA0f4z+8b13/VVk8fJR5e1U3j02ACUa gg/y8YBQA6qfCy7c8O+cTzj4IUWjMNl5dNBsYCr4M9pflod5xTzkYmrBqPcdfk5dkGrX8e 5i70cTYQHw3fzPQ2nJaZg12JJO62148k2yL5MgVnruFTE43AVsYE60Barqqse8uacS5Y9B ZkJbqmmvn3byXTwFna6no4TsL0+qgsuRMTH4o/L5uvp30CQM1VHL6qR/ry9TIzgGS1zfhn t8YR32Rry39GYbL2p1y/H2S1tWhMvw+0Hv4qrZuCtYmfmtU4UiT8VPb87hHbxQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmSDS-0001Hz-8y; Sat, 30 Sep 2023 01:08:34 -0400 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 1qmSDQ-0001Hp-Ud for emacs-orgmode@gnu.org; Sat, 30 Sep 2023 01:08:33 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qmSDF-0002dw-UE for emacs-orgmode@gnu.org; Sat, 30 Sep 2023 01:08:32 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id BEAEB3200907 for ; Sat, 30 Sep 2023 01:08:19 -0400 (EDT) Received: from imap47 ([10.202.2.97]) by compute6.internal (MEProxy); Sat, 30 Sep 2023 01:08:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fizz.buzz; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1696050499; x=1696136899; bh=Y9Z169KGRDb9G+HVmmMRPxsNE ILgzmi9UB3S2zlzQ08=; b=x2k00QBEEfmWsOWF99L8TBdaLQbq6T+nlnvLF2ubU /JZ7Yst5PKMnWrmxzf0R5bKsIamYhg+UqFH7OgXTc5avxonFifiROhr34abi99JZ K/jQYhsU33CE4h+Xegiz6PuUm7KYwIQQ7SKfufx67aTK/f9OMSC77TX/gI3kHxtN gn7dmWSzGxn/nGzOS+EvvUjUM5JT1JqC4sM2GeRpNJY2qFPNloN/+jbIXH63Tuyw U1UbeuMCsMXUtcvPUFd7M+hnsEmoMFa+5XznK4l6PmuB7DSKFc8REsr43Pn/C0Uv LsnfVZns0XPPxmuz8lns0DEOgKdhxYcaLizXO8UryI8sA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1696050499; x=1696136899; bh=Y9Z169KGRDb9G+HVmmMRPxsNEILgzmi9UB3 S2zlzQ08=; b=K4X5p81v1aLMpZwDYWrZ/JMiyrjldi8xYy5wY5ttF1/ukYqmSui NHcwrcZm+UEVoQcA6M/kYFoYFN2z1V4uWaYMq2PT6t6PBRO0Qj9EKQDLfwUn4pkO FKytpGdFCIDlWgONsjq7r/D9U8M5eMEhFJ3e092DWQYk/Ata8qXp8UtV+tyh/uLm Hxpi+Pk5A59kcb6IHxg9DggwiuCY4xoQ55REEo1WDDNMeOn0ZVgJdBQSPd0ml+Ub 1sO9M3UEoWFW66TwDiQKiAILn1ip+YwpzMkfUtlgMPDI+8vTGd6Jb5TR0r7h1eRm IFVCEze+DTxzQVgaWGskUh3JMx50wGmvh5A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrtdejgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre ertdenucfhrhhomhepfdfvohhmucetlhgvgigrnhguvghrfdcuoehtohhmsehfihiiiidr sghuiiiiqeenucggtffrrghtthgvrhhnpeekudeuieehteeghfetieegvefgtddvieegfe euffegfeehieeihefffeegkeehleenucffohhmrghinhepshhrrdhhthdpohigqdguohgt shhtrhhinhhgshdrohhrghdpohhrghhmohguvgdrohhrghdpfhhiiiiirdgsuhiiiienuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtohhmsehf ihiiiidrsghuiiii X-ME-Proxy: Feedback-ID: i589b4368:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0B442A6007A; Sat, 30 Sep 2023 01:08:18 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-958-g1b1b911df8-fm-20230927.002-g1b1b911d MIME-Version: 1.0 Message-Id: Date: Sat, 30 Sep 2023 01:06:49 -0400 From: "Tom Alexander" To: emacs-orgmode@gnu.org Subject: Lesser blocks allowing unescaped lines Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.21; envelope-from=tom@fizz.buzz; helo=wout5-smtp.messagingengine.com X-Spam_score_int: 9 X-Spam_score: 0.9 X-Spam_bar: / X-Spam_report: (0.9 / 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, FROM_SUSPICIOUS_NTLD=0.001, FROM_SUSPICIOUS_NTLD_FP=1, PDS_OTHER_BAD_TLD=1.997, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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: -5.29 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 805F340DE8 X-Spam-Score: -5.29 X-TUID: kbiR3YV1+RSt This happens in worg at: https://git.sr.ht/~bzg/worg/tree/ba6cda890f200d428a5d68e819eef15b5306055f/exporters/ox-docstrings.org#L2490 The documentation for lesser blocks[1] states: > Lines beginning with an asterisk or `#+` must be quoted by a comma (`,*`, `,#+`). However, the following test document parses as a lesser block despite containing a line starting with an unescaped #+: ``` #+CATEGORY: foo #+begin_src text #+CATEGORY: bar #+end_src ``` which parses as: ``` (org-data (:standard-properties [1 1 1 60 60 0 nil org-data nil nil nil 3 60 nil # nil nil nil] :path nil :CATEGORY "foo") (section (:standard-properties [1 1 1 60 60 0 nil first-section nil nil nil 1 60 nil # nil nil #0]) (keyword (:standard-properties [1 1 nil nil 17 0 nil top-comment nil nil nil nil nil nil # nil nil #1] :key "CATEGORY" :value "foo")) (src-block (:standard-properties [17 17 nil nil 60 0 nil nil nil nil nil nil nil nil # nil nil #1] :language "text" :switches nil :parameters nil :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value "#+CATEGORY: bar\n")))) ``` whereas I would expect this to be ``` (section (keyword :key "CATEGORY" :value "foo") (paragraph "#+begin_src text") (keyword :key "CATEGORY" :value "bar") (paragraph "#+end_src") ) ``` This test document shows that lines with an unescaped "*" do break up the lesser block: ``` * foo #+begin_src text * bar #+end_src ``` [1] https://orgmode.org/worg/org-syntax.html#Blocks -- Tom Alexander pgp: https://fizz.buzz/pgp.asc