summaryrefslogtreecommitdiff
path: root/docs/modules
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-12-23 23:59:31 -0700
committerDan Allen <dan.j.allen@gmail.com>2021-12-24 00:15:15 -0700
commitab32e3edf0fcdae975a6839050ad8783fa73b681 (patch)
treea457bde496e23e6abfec3a7070943a31f728a521 /docs/modules
parentaf604e90b95e2bcabf772896d994647277b81464 (diff)
minor change to avoid wrapping in example for custom syntax highlighter
Diffstat (limited to 'docs/modules')
-rw-r--r--docs/modules/syntax-highlighting/examples/pygments-syntax-highlighter-with-custom-stylesheet.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/modules/syntax-highlighting/examples/pygments-syntax-highlighter-with-custom-stylesheet.rb b/docs/modules/syntax-highlighting/examples/pygments-syntax-highlighter-with-custom-stylesheet.rb
index ef32705e..206e3a63 100644
--- a/docs/modules/syntax-highlighting/examples/pygments-syntax-highlighter-with-custom-stylesheet.rb
+++ b/docs/modules/syntax-highlighting/examples/pygments-syntax-highlighter-with-custom-stylesheet.rb
@@ -4,7 +4,8 @@ class ExtendedPygmentsSyntaxHighlighter < (Asciidoctor::SyntaxHighlighter.for 'p
def docinfo location, doc, opts
stylesheet = doc.attr 'pygments-stylesheet', './pygments.css'
if opts[:linkcss]
- %(<link rel="stylesheet" href="#{stylesheet}"#{opts[:self_closing_tag_slash]}>)
+ slash = opts[:self_closing_tag_slash]
+ %(<link rel="stylesheet" href="#{stylesheet}"#{slash}>)
else
stylesheet = doc.normalize_system_path stylesheet
%(<style>