Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove blank lines at end? #221

Open
davidpiano opened this issue Feb 10, 2024 · 1 comment
Open

Remove blank lines at end? #221

davidpiano opened this issue Feb 10, 2024 · 1 comment

Comments

@davidpiano
Copy link

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
Copy link
Owner

nobiot commented Feb 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants