all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Dauer <mick.dauer@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Issue with export of inlinetasks
Date: Thu, 29 Sep 2022 18:20:49 +0200	[thread overview]
Message-ID: <CAP7OBxLDY1NZRSRQWGf=infTU+sosNZtq34CAWLYiBtZXG8v+A@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2022-09-29 17:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-29 16:20 Michael Dauer [this message]
2022-09-30  3:11 ` Issue with export of inlinetasks 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP7OBxLDY1NZRSRQWGf=infTU+sosNZtq34CAWLYiBtZXG8v+A@mail.gmail.com' \
    --to=mick.dauer@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.