Login  Register

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}
----

A.3. Predefined Attributes for Character Replacements

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.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/skipping-reference-to-missing-attribute-tp7687p7700.html
To start a new topic under Asciidoctor :: Discussion, [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML