emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Issue with export of inlinetasks
@ 2022-09-29 16:20 Michael Dauer
  2022-09-30  3:11 ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Dauer @ 2022-09-29 16:20 UTC (permalink / raw)
  To: emacs-orgmode

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

There seems to be an issue with export of inlinetasks, at least with
customizing it. Org mode version 9.5 (9.5-gced2b3
Please see the POC below:

* heading 1
** heading 1.1
* heading 2
*************** TODO inline task
*************** END
* heading 3
** heading 3.1
* Direct is fine
#+begin_src elisp
(let ((parsetree (org-element-parse-buffer)))
  (org-element-map parsetree '(headline inlinetask)
    (lambda (e) (org-element-property :title e))))
#+end_src

#+RESULTS:
| heading 1          |
| heading 1.1        |
| heading 2          |
| inline task        |
| heading 3          |
| heading 3.1        |
| Direct is fine     |
| Issue is at export |
* Issue is at export
#+begin_src elisp
(let ((mist-output "")
      (org-export-with-inlinetasks t))
  (defun mist--html-format-inlinetask-function (todo todo-type priority
text tags contents info)
    (setq mist-output (format "%s\niii %s" mist-output text))
    "iii")
  (setq org-html-format-inlinetask-function
'mist--html-format-inlinetask-function)

  (defun mist-html-format-headline-function (todo todo-type priority text
tags info)
    (setq mist-output (format "%s\nhhh %s" mist-output text))
    "hhh")
  (setq org-html-format-headline-function
'mist-html-format-headline-function)
  (kill-buffer (org-export-to-buffer 'html "mist.html"))
  mist-output)
#+end_src

#+RESULTS:
#+begin_example

hhh heading 1.1
hhh heading 1
hhh inline task
hhh END
hhh heading 2
hhh heading 3.1
hhh heading 3
hhh heading 4
hhh Direct is fine
hhh Issue is at export
#+end_example

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

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

end of thread, other threads:[~2022-10-03  2:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-29 16:20 Issue with export of inlinetasks Michael Dauer
2022-09-30  3:11 ` Ihor Radchenko
2022-09-30  8:16   ` Michael Dauer
2022-09-30  8:23     ` Ihor Radchenko
2022-10-02 13:16       ` Michael Dauer
2022-10-03  2:52         ` 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).