diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-12-23 23:59:31 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2021-12-24 00:15:15 -0700 |
| commit | ab32e3edf0fcdae975a6839050ad8783fa73b681 (patch) | |
| tree | a457bde496e23e6abfec3a7070943a31f728a521 /docs/modules/syntax-highlighting/examples | |
| parent | af604e90b95e2bcabf772896d994647277b81464 (diff) | |
minor change to avoid wrapping in example for custom syntax highlighter
Diffstat (limited to 'docs/modules/syntax-highlighting/examples')
| -rw-r--r-- | docs/modules/syntax-highlighting/examples/pygments-syntax-highlighter-with-custom-stylesheet.rb | 3 |
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> |
