emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] Org mode 9.6.1: Subtree export without body creates an empty code block on export
@ 2023-01-11 23:13 Kaushal Modi
  2023-01-12  9:25 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Kaushal Modi @ 2023-01-11 23:13 UTC (permalink / raw)
  To: emacs-org list

[-- Attachment #1: Type: text/plain, Size: 860 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1498 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-12  9:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11 23:13 [bug] Org mode 9.6.1: Subtree export without body creates an empty code block on export Kaushal Modi
2023-01-12  9:25 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).