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

Tangling introduces spurious semi-colons (;) #12

Open
ericsfraga opened this issue Sep 17, 2021 · 3 comments
Open

Tangling introduces spurious semi-colons (;) #12

ericsfraga opened this issue Sep 17, 2021 · 3 comments

Comments

@ericsfraga
Copy link

Tangling a Julia src code block always prepends a semi-colon before the code. This is an artefact of handling variable settings for the src block and fails when no variables have been assigned.
Note: it is not clear why semi-colons are required even when variables have been assigned using :var but I guess there may be edge cases where this matters.

@nico202
Copy link
Owner

nico202 commented Sep 17, 2021

Hi, if something like cd258ab is ok we can merge it in master (or write something more nice)

Thanks

@tecosaur
Copy link
Collaborator

tecosaur commented Dec 1, 2021

That looks like it could be good. I'll try to test it on a few files in the next few days and inspect the output.
( Aside: until now I had the wrong repo watch setting, now I'll actually see notifications for issues I'm not involved in )

@tecosaur
Copy link
Collaborator

tecosaur commented Dec 2, 2021

For the sake of execution, it could be worth adding a nothing at the end, otherwise you get this behaviour (from current master)

image

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

3 participants