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

:imagesdir: does not like multiple slashes #4419

Open
debuglevel opened this issue Mar 17, 2023 · 0 comments
Open

:imagesdir: does not like multiple slashes #4419

debuglevel opened this issue Mar 17, 2023 · 0 comments

Comments

@debuglevel
Copy link

debuglevel commented Mar 17, 2023

$ asciidoctor -v
Asciidoctor 2.0.18 [https://asciidoctor.org]
Runtime Environment (ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)

In some edge-cases, :imagesdir: does not like two slashes:

// works
:imagesdir: ./project/X/../Administration/

// does not work
:imagesdir: ./project/X//../Administration/

// works
:imagesdir: ./project//Administration/

This is quite hard to debug, as bash has no problem with e.g. ls ./project/X//../Administration/

Furthermore, the WARNING is asciidoctor: WARNING: image to embed not found or not readable: /.../asciidoc_thing/project/X/Administration/myimage.png which is also weird and confusing :)

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