From: Ihor Radchenko <yantar92@posteo.net>
To: "Rudolf Adamkovič" <rudolf@adamkovic.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org Babel "swallows" table column groups
Date: Fri, 28 Jun 2024 15:28:10 +0000 [thread overview]
Message-ID: <87r0ch6q9h.fsf@localhost> (raw)
In-Reply-To: <m2h6dd9r0s.fsf@adamkovic.org>
Rudolf Adamkovič <rudolf@adamkovic.org> writes:
> Given the source block
>
> #+BEGIN_SRC emacs-lisp
> (list (list 1 2) (list "/" "<>") 'hline (list 3 4) (list 5 6))
> #+END_SRC
>
> Org Babel outputs
> ...
> with the second element of the list
>
> (list "/" "<>")
>
> swallowed, without a word.
>
> Why would Org Babel do this?
>
> And, how can one output tables with column groups?
This is because of how `orgtbl-to-generic' is implemented. It is taking
pieces from the full ox.el exporter, hard-coding certain things. For
example, it always removes special table lines:
;; Since we are going to export using a low-level mechanism,
;; ignore special column and special rows manually.
ox.el used to do the same recently, until I added a feature to keep
special lines in tables during export (for ox-org purposes).
See also https://list.orgmode.org/orgmode/87bkjy9tew.fsf@mat.ucm.es/
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2024-06-28 15:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-28 12:43 Org Babel "swallows" table column groups Rudolf Adamkovič
2024-06-28 15:28 ` Ihor Radchenko [this message]
2024-06-30 8:53 ` Rudolf Adamkovič
2024-07-08 12:05 ` Ihor Radchenko
2024-07-10 13:33 ` Rudolf Adamkovič
2024-07-10 13:58 ` Ihor Radchenko
2024-06-28 17:42 ` S. Sajad Hosseini Balef
2024-06-30 8:13 ` Rudolf Adamkovič
2024-06-30 8:35 ` S. Sajad Hosseini Balef
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r0ch6q9h.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=rudolf@adamkovic.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 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).