-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Exception thrown when using render_s
with asciidoc
#1289
Comments
Nice catch! Would you be up to submitting a PR to fix this? It might be as simple as prepending @mojavelinux What's a reasonable default if no filename is given? Is passing |
I would recommend setting So it might be something like: if filename
attributes['docname'] = File.basename(filename, (extname = File.extname(filename)))
attributes['docfilesuffix'] = attributes['outfilesuffix'] = extname
else
attributes['outfilesuffix'] = '.adoc'
end Though, keep in mind that setting |
That makes sense! So far we're assuming that is the context for @dometto Would you like to make the PR? If not, I'm happy to. |
Yes, I'll submit a PR later today! Thanks for the swift reply both of you. |
Thank you! |
Example:
Error thrown:
no implicit conversion of nil into String
The problem is that the asciidoc rendering block assumes a filename is present (which is not the case when using
render_s
). See here.The text was updated successfully, but these errors were encountered: