Hi,


The code works, and each resulting file (one per top-level subtree) contains the corresponding section, but without the headline. I would like the headling to be exported as well.

I have been looking around and found this: https://emacs.stackexchange.com/a/2260. This code exports each section including its headline, but each file contains the corresponding section PLUS everything after it.

I've been poking around the org functions, but I haven't been able to figure this out. Any ideas?

Thanks in advance,
--Diego