From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YHIqJsDdMWJtTgEAgWs5BA (envelope-from ) for ; Wed, 16 Mar 2022 13:53:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aCqpI8DdMWJs6gAA9RJhRA (envelope-from ) for ; Wed, 16 Mar 2022 13:53:20 +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 371B62C6A8 for ; Wed, 16 Mar 2022 13:53:20 +0100 (CET) Received: from localhost ([::1]:33930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUT9S-0006JA-Uh for larch@yhetil.org; Wed, 16 Mar 2022 08:53:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUT4I-0001hG-PV for emacs-orgmode@gnu.org; Wed, 16 Mar 2022 08:48:01 -0400 Received: from [2607:f8b0:4864:20::b2d] (port=45600 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 1nUT4H-0005DW-49 for emacs-orgmode@gnu.org; Wed, 16 Mar 2022 08:47:58 -0400 Received: by mail-yb1-xb2d.google.com with SMTP id w16so4132794ybi.12 for ; Wed, 16 Mar 2022 05:47:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=I/IG/7we95labm09pglnZ8urByc+fI0CwkSBuwLHkRw=; b=iJ1z+5n0jlSJiUSM05tpM9Ci9uaODWPmaCfpupZaArNRuxtK5YlRaTCuLlDldQj3cq qFhdFNGA86P1NTxQPzhtbUSdB6kowMxpQ50wnnQoQLvsB2hecEXPi295+wHFB2UWStT7 HXcSpw4TFcz3q7wrz3cdtr/pjNiBlB8TVKsiQ7GeuciwQiEu/uD8q37qA2VjXJhwj0HX PsPqQdYWkjdCtxA9muXbvYLc2uH71grlIrm0TyiBzXAzwtgSoT7whf95vGe3TQEHIFqD HHbkt/C7YcvOvNnPXmt4FXfsHxBshs2LqwL3cP717NRgpwzyLUTuRwJI5jjUqcREy+OZ RdHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=I/IG/7we95labm09pglnZ8urByc+fI0CwkSBuwLHkRw=; b=BVA3dsKeiUPgEjUxUzd9/Z0fLTQPEkmPUyAZ/LXDhQ1ZXf3Rb/Y+qNC7kXxjmBD9OW lY+ezqIBlA0tWYJSHLbs6d6Je3y/zMqOP1EK+6PJBBymhR+Qx8GxVsPTgYUlzE7kDNwH kxKavtYfcp1Z0gJbxYM58UsejGMVtMtfmbOiN/ioJDl7qTEjhEKocBy6dmOsqz0IEEeB LX+jqIYyv1qQ8kmwmXam2YOdBr0XbCQPt2eRfHZJBMjSWwMZaovZFom0p0tMl3MJbBrK HDA/YuiuhYc8YjaO0kPJ57RSKlWioqFwIFff+PCBHhKybWhkHafCr8Cfix3UNb9icPR9 81Vw== X-Gm-Message-State: AOAM532tiGXkEfWIPTlxikxnMWt3CbjGfEsMRof6Ny7zxwD5NccluFfi PK/OfcSYFzr2QRpjYjmMHdH8ofNBV1Rv4UqI9FDVI83H X-Google-Smtp-Source: ABdhPJxreBmyHRZmMkSVzFsKt1mXdNhWU/x+tprEiFC1Byjp8lGg/Jyh79mQ4uQsO2M/hDtoUK3oVW5Rmv7//fl7slo= X-Received: by 2002:a05:6902:1ca:b0:624:e2a1:2856 with SMTP id u10-20020a05690201ca00b00624e2a12856mr27704520ybh.389.1647434875370; Wed, 16 Mar 2022 05:47:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kaushal Modi Date: Wed, 16 Mar 2022 08:47:45 -0400 Message-ID: Subject: Re: Inline src block element not parsed correctly for export when in a list item To: emacs-org list Content-Type: multipart/alternative; boundary="000000000000897f8c05da5552ad" 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, HTML_MESSAGE=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-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=1647435200; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=I/IG/7we95labm09pglnZ8urByc+fI0CwkSBuwLHkRw=; b=DrF7gacfsyxdjumJ7ftSPLYCs3/S5UEt+XlCM+E/1u1Qoj3JCMc1LKFWWBaIGR5QzJ+Rgr D0g4C3doa1Yc2HNOo5jWIVQJPdbkucrCCPW5GBezSB170oNFbJs1Ug9fTTNG5q4rKNaOub pauEt36/ZUBjMU1RsFbPqpUH1YKXkYMerT9KOy9TeFikb9AR9SCASajV6ZNxX77Fhn58nO xnX0BT3cNF0Vc36wx1XYmAP1HmnKTCd0o34ad56bHneFWR0GJvRNiy7GB4yP+ANN8wR+NJ 0fV5Mm0QhspLij5KQ76+N45ZAg7cLzxovlBugE64aRHiLpo9snV2OEyyQPsi7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647435200; a=rsa-sha256; cv=none; b=TSCUOofx2fijOS9dybG7+lAK+GXWUV14Wn69GhyJggDb81J/pREm8gN1FevnQhgDkZICWE U9O2qlWcckLbcgaqhiNliJ6933Drmn0+0mnTx2Lsp01fsuFg4G063LieO8f4lkucq4l6LO 2J42A8r4obCvnNiiGFROy0s1/dt26KldJKvCMu4mzSAzaOie25DU9or1vlDbkJGlGz5ze6 24M7raSRUU2JTbxtqjfdTNGtZTJZOrSZ6/vWXQEACzRCL4yWcf4OWOPzejI8MsFIy4vnWv sS7eoWVa5ypikKjN0fpH4PMgryZpsO1VBFptJ9Qqix2Q4UcZef82TmOT2gk4Mw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=iJ1z+5n0; 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: -8.96 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=iJ1z+5n0; 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: 371B62C6A8 X-Spam-Score: -8.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: WHHzLW9MKpga --000000000000897f8c05da5552ad Content-Type: text/plain; charset="UTF-8" Hello, Just pinging here again. Can someone confirm this bug? -- Kaushal Modi On Tue, Mar 1, 2022, 10:10 PM Kaushal Modi wrote: > 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 > --000000000000897f8c05da5552ad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

= Just pinging here again. Can someone confirm this bug?

--
Kaushal Modi

<= div class=3D"gmail_quote">
On Tue, Mar= 1, 2022, 10:10 PM Kaushal Modi <kaushal.modi@gmail.com> wrote:
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.), AN= D
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:

=3D=3D=3D=3D=3D
#+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
=C2=A0 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]]}.=
=3D=3D=3D=3D=3D

Upon pasting the above snippet in an Org buffer and running `C-c C-e t
A`, I get:

=3D=3D=3D=3D=3D
Run `C-c C-e t A'.


1 Doesn't export correctly if inline src block is in a wrapped list
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=C2=A0 - abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc
=C2=A0 def][bar]]}.


2 Exports correctly
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

2.1 .. if the inline src block wraps in a paragraph
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

=C2=A0 abcdefg abcdefg abcdefg abcdefg `[[abc def][bar]]'.


2.2 .. if the inline src block is in a list but doesn't wrap
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

=C2=A0 - abcdefg abcdefg abcdefg abcdefg `[[abc def][bar]]'.
=3D=3D=3D=3D=3D


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
--000000000000897f8c05da5552ad--