From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CD3yNuJCv2NUIgAAbAwnHQ (envelope-from ) for ; Thu, 12 Jan 2023 00:14:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qBz6NuJCv2O9fQAA9RJhRA (envelope-from ) for ; Thu, 12 Jan 2023 00:14:42 +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 714C11273B for ; Thu, 12 Jan 2023 00:14:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFkHw-0003fI-CN; Wed, 11 Jan 2023 18:13:44 -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 1pFkHv-0003ez-4C for emacs-orgmode@gnu.org; Wed, 11 Jan 2023 18:13:43 -0500 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFkHt-0005LL-5b for emacs-orgmode@gnu.org; Wed, 11 Jan 2023 18:13:42 -0500 Received: by mail-pg1-x532.google.com with SMTP id s67so11600395pgs.3 for ; Wed, 11 Jan 2023 15:13:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=tPaayQ6oY15SfxqKAXJBCBOy/8p1YFYkhNHn0+4l5zM=; b=Y/rI+TXFLztMuvO562EBf2k3cXIhRVoAwpLtHU+MUX6J22cPKRp2kV8b9k2KyF2OIp pezxkHnopBXPMdPHpKt266ax5rxcaY1LFUtdLOwrSpnV7cxBOVxfYmafGbTC4CsVs77A GJa0rKGM10RGpgiU8yOKPaD3nxaxqNFh5ezokIuxqlPYQDrW0rT0vnBVZvzTn+fp97C1 lS0fcYNFicH2WHKnavIObtqMjd0FfmLHEoZZgv+oypyGYqrH83hvSc6vQCErO9jkxoSL 1WhTBHb/QsIGd4flQFAyFWa7X0/RvJJBxjQRXhyLCiy03o7BamfdHRyA3WyRkNva9KtU B34A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tPaayQ6oY15SfxqKAXJBCBOy/8p1YFYkhNHn0+4l5zM=; b=UK7uVgU/g2B5QyOhmOI/ObR4eh7yxpqPIzPboB5tyfLQaDSl5yUYqWoyLwwWAyxwkX 3BcfWFIbcGmV9Un2KKVRUzS5rotNH13a9IKiga/pz+DwRJlSBmrKMpo0ub44QM5yUzzL VWBAH1se6L+/EhS/QLA1N27oeG7sa4iK/J7PheZohEc3UwN/5+Q5iY+2couzGx06MTFQ Zmmi5LTLDF0J8zW8xg3uBEEExJLi3vWesbKpEag1K5Y+iQZlHr8oBWBUvQOjLIGNPzhr uVPDI0Q9pu7Ra91wycA+FFLXy6piM+MxLfpU+EL8/FCCAbR7cSdgl7AvBxBT8ItoJUkZ 7N1w== X-Gm-Message-State: AFqh2kpR8hwT9cinwGlH3q683ApnUn+mak8c/q8zKKBlZSkHE7uG7/U7 9jRvG41w3OdLSkdHO8rTf4LkWrQRSfVmeLbtT70yLrvI9+U= X-Google-Smtp-Source: AMrXdXsfVUk2av4hehuVF234ReINTyybmmGoodtaWIFLaKbnyIvglgT3VmeoynXeahWxADuo1qBkMZyw9eUm/mjLZEw= X-Received: by 2002:a63:f242:0:b0:478:99a3:2885 with SMTP id d2-20020a63f242000000b0047899a32885mr5872776pgk.151.1673478819008; Wed, 11 Jan 2023 15:13:39 -0800 (PST) MIME-Version: 1.0 From: Kaushal Modi Date: Wed, 11 Jan 2023 18:13:02 -0500 Message-ID: Subject: [bug] Org mode 9.6.1: Subtree export without body creates an empty code block on export To: emacs-org list Content-Type: multipart/alternative; boundary="0000000000008bdb1805f20526f2" Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=kaushal.modi@gmail.com; helo=mail-pg1-x532.google.com 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673478882; a=rsa-sha256; cv=none; b=PNBwjdm7CWyG1GLknza/yFjg0Epv32SJm39nWy0nl1T6DaNQO5ErT2cQbyeiHUYN7ra79D c0SyhGt9DEoyj6eDg6RIUP/B72yfhbiBuYSqUS+Qi0L0MvnuGTKM7nui7+buQWKxv1LdYJ Y5hTy5hjuUlJ5O2if11AovetbajSvDevm+MiZRbcjc8WnkfmxPqJEeZeZB4faPIRCYxYRv YS7XJ7t1Tnudghs1srafC2VQmGaNaM5Z8CvqeOO7vRSvYBZrrrKJ+e5ITVzYuuP1AjUuqD BYaleCTtoxFlICLgFDZtiuqpwSkNjU8frejr0b+mjslnwqaLePS/EAGBDhAy8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Y/rI+TXF"; 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=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673478882; 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=tPaayQ6oY15SfxqKAXJBCBOy/8p1YFYkhNHn0+4l5zM=; b=INqzQYuQ7Rn8M1jcyTF2FO9l8kiCvW89NiFMLApyyFslTsubu/BvUf4pcfX1IUb05JiP6r mJyumDb+tldQnE3rpGbn5Znx+DR6wI5Ir/MTSwtKy8z02sOAy3L+MweBGjX3ppzb+IH1kP AOW9F5quj/BTW9wXivvhprJtwQwO1t/MiI2UlverCs/U2/sWXJN/U5tlsIKAwAA6WlJkyX d71u4jG4fY20JroS5SXE3JMFOWxTVGwM8WdtacCqfNVrWz1hl7b6xDqGJoZBoCoiYt/kcT WQz0MMR0JwPy1RP33r8mBFHj6F3VGiYqrAm692N+kCCiYXvZS+BTGNtWtACZ9A== X-Migadu-Spam-Score: -6.24 X-Spam-Score: -6.24 X-Migadu-Queue-Id: 714C11273B X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Y/rI+TXF"; 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=pass (policy=none) header.from=gmail.com X-TUID: YnFpq9nhXrRT --0000000000008bdb1805f20526f2 Content-Type: text/plain; charset="UTF-8" Hello, This issue is best explained with this small example. 1. Create this Org buffer: ===== #+options: author:nil toc:nil * Post 1 :PROPERTIES: :EXPORT_FILE_NAME: foo :END: * Post 2 ===== 2. Place the cursor at the end of :END: 3. C-c C-e C-s t A You get this: ===== ________ POST 1 ________ ,---- `---- ===== Note the empty code block exported (I see this for any backend; but I discovered this as I was locally running the ox-hugo test suite.. and a few dozen tests which did not have any body in the subtrees, I saw these empty code blocks), which is not present in the Org source. If I delete the "* Post 2" line, that empty code block is not exported (as expected). Org mode version 9.6.1 (release_9.6.1-116-g07c63d). -- Kaushal Modi --0000000000008bdb1805f20526f2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

This issue is best ex= plained with this small example.

1. Create this Or= g buffer:

=3D=3D=3D=3D=3D
#+options: aut= hor:nil toc:nil

* Post 1
:PROPERTIES:
:EXPORT_FILE_NAME: foo:END:
* Post 2
=3D=3D=3D=3D=3D

= 2. Place the cursor at the end of :END:
3. C-c C-e C-s t A
<= div>

You get this:

= =3D=3D=3D=3D=3D
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ________
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0POST 1
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 ________


,----

`----
=3D= =3D=3D=3D=3D

Note the empty code block exported (I= see this for any backend; but I discovered this as I was locally running t= he ox-hugo test suite.. and a few dozen tests which did not have any body i= n the subtrees, I saw these empty code blocks), which is not present in the= Org source.

If I delete the "* Post 2" = line, that empty code block is not exported (as expected).



Org mode version 9.6.1 (r= elease_9.6.1-116-g07c63d).





--
Kaushal Mod= i
--0000000000008bdb1805f20526f2--