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

get only the first word after code_block_start in get_lang #12

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

0fflineuser
Copy link

Currently it gets all the text after the start of the code block without the spaces.
Now it only get the first word so it can work in orgmode when it is followed by :tangle.

#+BEGIN_SRC c :tangle helloworld.c
#include <stdio.h>

int main(){
printf("Hello, world!\n");
}
#+END_SRC

Results: Hello, world!

Copy link
Owner

@jubnzv jubnzv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@jubnzv jubnzv merged commit 79df3e7 into jubnzv:master Sep 19, 2024
1 check passed
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