nobiot / org-transclusion

Emacs package to enable transclusion with Org Mode
https://nobiot.github.io/org-transclusion/
GNU General Public License v3.0
903 stars 43 forks source link

Remove blank lines at end? #221

Open davidpiano opened 4 months ago

davidpiano commented 4 months ago

I often add blank lines in my files, before the next heading - but I don't want to copy those. Would it be possible for org-transclusion to remove all blank lines that are at the end of the transcluded part?

nobiot commented 4 months ago

I think it's possible. I can't provide a sample code, but have a look at variable org-transclusion-content-format-functions

It should have a list of functions. '(org-transclusion-content-format-org org-transclusion-content-format))

If you are including Org files, you should be able to override the first function (or add an advice function), etc.