-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Include in Activity Diagram does not work ( due to "\r" ) #379
Comments
Hey! Good catch, I think we should use Do you want to submit a pull request? Ideally, we should add a test case in: https://github.com/Mogztter/asciidoctor-kroki/blob/master/test/preprocess.spec.js to make sure that the fix is working as expected. |
When a diagram is using Windows EOL line endings (\r\n) and using include of a stylesheet, an error message is thrown reporting that the file to include cannot be found (because of a remaining \r on the url of the code.) This fix adresses this issue and removes any trailing spaces, \r,\n,\r\n in the resolved include file.
Hello @Mogztter, |
Hello,
first of all thanks for this amazing tool. It is very helpful.
Today I came across an issue on Windows where I try to include a stylesheet in an activity diagram.
It it related to #201.
As I have found out, the path to the included file gets not resolved due to "\r" at line end of include reference.
Error message :
' caused an error:sing of PlantUML include, because reading the referenced local file 'stylesheet.iuml
'rror: ENOENT: no such file or directory, open 'stylesheet.iuml
Please see attached sample project.
The issue can be tracked down in
node_modules/asciidoctor-kroki/src/preprocess.js
line 125 as shown in above screen shot.Maybe it is not the best place to fix it as shown in above screen shot but at least with the modification there it works.
Could you please check and maybe fix it where appropriate?
Thanks and Best Regards
Sample Project:
adoc-web_cr-issue.zip
The text was updated successfully, but these errors were encountered: