Re: skipping reference to missing attribute
Posted by
David Jencks on
Feb 28, 2020; 3:12pm
URL: https://discuss.asciidoctor.org/skipping-reference-to-missing-attribute-tp7687p7701.html
In case you haven’t discovered this already….
:folder_name: Path
[source,shell,subs=attributes+]
----
D:\Windows{backslash}{folder_name}
----
David Jencks
On Feb 28, 2020, at 12:41 AM, halol [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Thank you both for your replies.
Escaping the shell variable is indeed what I need, and I now feel a bit dumb for not thinking about it before. Specially since I have been struggling with the opposite problem: attributes being escaped when I don't want them to be.
For example:
:folder_name: Path
[source,shell,subs=attributes+]
----
D:\Windows\{folder_name}
----
Which very obviously doesn't produce the expected results. That should have given me the solution to my current problem!
And I take good note of the comment regarding subs=attributes.
Thanks again.