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

Understand / Document pandoc-include trouble with underscore #155

Open
aubertc opened this issue Feb 26, 2024 · 1 comment
Open

Understand / Document pandoc-include trouble with underscore #155

aubertc opened this issue Feb 26, 2024 · 1 comment

Comments

@aubertc
Copy link
Contributor

aubertc commented Feb 26, 2024

I just realized that some include statements were not working correctly, and that the error message in the logs was of the type

[WARNING] Included file not found: code/overflow\_example.cs

I cannot reproduce this bug on my machine, but somehow on the remote execution the _ characters are escaped and breaks the inclusion.

I have (9c48116) applied a temporary patch by removing the _ from the filename, but we should either understand this bug and fix it, or document it.

@aubertc
Copy link
Contributor Author

aubertc commented Feb 26, 2024

The readme of pandoc-include says

If there are special characters in the filename, use quotes:

but using

!include "code/overflow_example.cs"

as in f39e45e did not helped:

[WARNING] Included file not found: “code/overflowExample.cs”

(because, this time, the " got escaped into ).

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

1 participant