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 ms0.migadu.com with LMTPS id 4MK2I6PgHmJCVwAAgWs5BA (envelope-from ) for ; Wed, 02 Mar 2022 04:12:35 +0100 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 GKUDIaPgHmJyQwAA9RJhRA (envelope-from ) for ; Wed, 02 Mar 2022 04:12:35 +0100 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 52AB52BDE1 for ; Wed, 2 Mar 2022 04:12:35 +0100 (CET) Received: from localhost ([::1]:46798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPFPm-0002gY-F3 for larch@yhetil.org; Tue, 01 Mar 2022 22:12:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPFOa-0002gQ-Q1 for emacs-orgmode@gnu.org; Tue, 01 Mar 2022 22:11:20 -0500 Received: from [2607:f8b0:4864:20::b2d] (port=38423 helo=mail-yb1-xb2d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nPFOZ-0007SM-8B for emacs-orgmode@gnu.org; Tue, 01 Mar 2022 22:11:20 -0500 Received: by mail-yb1-xb2d.google.com with SMTP id u3so671488ybh.5 for ; Tue, 01 Mar 2022 19:11:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=RofW+0mpoXWvy8wqbKjuKtLX85lPTkPEeMWIm41WAu0=; b=Y2GLS4jxE8djNrl3b0K/qKgWsokCXKAF0nMdbB686zJmFoQ+QJ8ty02YjmkLPzA+He dbKSSpjls3jzmcYbErTl5gglsu+m6eGbOs6TgMv8bUanEIFfr4ZsTRiwLnBGS3jnuarD xaGFVNMLkypGg/wGhXASMpXa3L57YSuUJBTGjr+ChkoelJQCMfTGJ0S/fJdnhmU2Cekh TquV1bh3Ur3oyzeQ+z8MDgN7glSCy5yLDwtyY9AmjLNNbHmVitzQ38hXJ6tOzNHYXXDr bo40n27tqLFGfMMKE7MlR3Lp73C8sVlYjxaqtGPQjK2vF51xXDKvTyOt+tFRfgwnHBii Foyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RofW+0mpoXWvy8wqbKjuKtLX85lPTkPEeMWIm41WAu0=; b=Xm5waIQbmtUVwMLFpXQOSJPnMyy9dI6kYfeZ2WOQsb3phIi/RZuaf7cidpdXQI9wcf oPoARKr6GkOK9N42cHKnMqUgcC8WIzK68jsPpdJmcdDPMoOIBC/ixPD6zczhNWHbkRUT rxV5P+LVkkz99jYenWm70E+S1sC8/3nILI7UaeA3qxruHNBKOavWw+iLphnqhFfBKeey X3lyGLMNIUclT/QdQJwLme3AAlmrbxTVVd+YFUEYB9eCejmKC/3waFVA0bmqIjWOPVD8 lVPxQ6qU0C/1pv2lQ5Ows+aQaZ3J/ufgACxYMmTYFrU8dXarPws6ictOFftJ/kuEKmP0 0YPw== X-Gm-Message-State: AOAM531fcyOIemhUgN/tIjf+7O2kdP0Rw3p6RQZZ5GUnw3KD6Kz+AIu+ semiZSj1WB2BGXcKCSbluPauAUOAo54SW+GliNFsC2OSTTw= X-Google-Smtp-Source: ABdhPJwjSMW2KiNXvEanG5qfAIg+ZolJVQEYETx0Y6TMENtn2TiPxqBSQNkuL3cwEOLahaXaNJsmS6cRI+ojv9L8aMY= X-Received: by 2002:a25:2b44:0:b0:624:99d5:891 with SMTP id r65-20020a252b44000000b0062499d50891mr27415288ybr.244.1646190675755; Tue, 01 Mar 2022 19:11:15 -0800 (PST) MIME-Version: 1.0 From: Kaushal Modi Date: Tue, 1 Mar 2022 22:10:39 -0500 Message-ID: Subject: Inline src block element not parsed correctly for export when in a list item To: emacs-org list Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::b2d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::b2d; envelope-from=kaushal.modi@gmail.com; helo=mail-yb1-xb2d.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646190755; 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=RofW+0mpoXWvy8wqbKjuKtLX85lPTkPEeMWIm41WAu0=; b=D9tPvbgjl+MzqQAdObKlzp7pfDwtcgBPTHKJ3MqeKPHIUc7fa5U5NLz7pngxytayFzwtn3 /0vaLVjo0R5oOz5ivlIpTQMv1Ol4vJUL+9Q3fwYrZv+qqUkADpL0kHikiEGkxQsoodxpjT 0MjIqaxM9VxfQCpOlEqyjlTiECfvjaXFoteSe/VLC6nn0Ph8uIZivHYs3m9QbWodBx+j23 rSLFDMBvQ3iE5Ts6jKJl8EVLOCYkGqgQZNd6oF3toZjaVMHEzzocWKLDWJwqsPi2npamm/ I7lY1om9QJ51kSe+gQSW+HMwE7rgOc+/XMNAHdA2TQp4St1jAf3g5DAosWJZvw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646190755; a=rsa-sha256; cv=none; b=j1WQREXrF18gh00UmCuyVRekAUEwGQtIPLuvccKwdwx04m4GxsuoFl7Nei6xal/T4DFApB KpbGVIQ/GXyeOkYohCrKFTBD7YvWNoQJVLxnirc63sl1S6nM9uSQUrBGW8cB9MyYU0o+4n 325XrMQvPlSbIQ92w0cVXcM4J7OJfVNGjnSC0GOdjB3750L/HwxKCNpqyD3Bdap1lfiJy3 vc9GRAp+kxxrLwWI+g4hxKB/Cq3crxPYdLnUNhEY609yl9TALC0fXj2Nh9HqTPbxtTTfqO TZ5jezO6gVY9xsMb+pms+LXwpmLfL2MGLbPzhWQCQ1ihAn02+/TAvn0axYhvEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Y2GLS4jx; dmarc=pass (policy=none) header.from=gmail.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: -5.58 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Y2GLS4jx; dmarc=pass (policy=none) header.from=gmail.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: 52AB52BDE1 X-Spam-Score: -5.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7l58Rw3iPzoK Hello, I believe I have come across a corner case issue where the inline src block element doesn't get parsed as one, if: 1. That src block is in a list item (plain list, definition list, etc.), AND 2. That src block wraps around when auto-filling. This issue can be reproduced on the main branch: Org mode version 9.5 (release_9.5-505-gef666) MWE: ===== #+author: #+options: toc:nil Run ~C-c C-e t A~. * Doesn't export correctly if inline src block is in a wrapped list - abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc def][bar]]}. * Exports correctly ** .. if the inline src block wraps in a paragraph abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc def][bar]]}. ** .. if the inline src block is in a list but doesn't wrap - abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc def][bar]]}. ===== Upon pasting the above snippet in an Org buffer and running `C-c C-e t A`, I get: ===== Run `C-c C-e t A'. 1 Doesn't export correctly if inline src block is in a wrapped list =================================================================== - abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc def][bar]]}. 2 Exports correctly ==================== 2.1 .. if the inline src block wraps in a paragraph ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ abcdefg abcdefg abcdefg abcdefg `[[abc def][bar]]'. 2.2 .. if the inline src block is in a list but doesn't wrap ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - abcdefg abcdefg abcdefg abcdefg `[[abc def][bar]]'. ===== Note that incorrect export of the inline src block in section 1 above. The remaining sections exports correctly because either the inline src block is not in a list item, or it doesn't wrap to the next line. -- Kaushal Modi