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

Make adjusting header more robust #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ckeen
Copy link
Contributor

@ckeen ckeen commented Jan 12, 2023

This also unbreaks features like org-capture when there is no TITLE or AUTHOR set in the document.

This also unbreaks features like org-capture when there is no
TITLE or AUTHOR set in the document.
@rougier
Copy link
Owner

rougier commented Jan 12, 2023

I read the code but I'm not sure what you're doing exactly.

@ckeen
Copy link
Contributor Author

ckeen commented Jan 13, 2023

The code tries to find #+TITLE: and #+AUTHOR: in the buffer, if there's at least a title set, it adjusts the header accordingly.

It will not do this if title is not set and it will set the author part to "" if it is missing.

@rougier
Copy link
Owner

rougier commented Feb 2, 2023

I've modified your code since then to get extract title/author using org tools. Can you check?

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

Successfully merging this pull request may close these issues.

2 participants