diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2024-03-07 18:50:13 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2024-03-07 18:50:13 -0700 |
| commit | 02cfbded6707f722218ecfeefc6c063d29f5e59a (patch) | |
| tree | 60fca289aaf6c9e0cee08c675f88b0f6c954d6ab /lib | |
| parent | b095a23c4a63a1a8b7fe23149fc4fbf3b2814fe0 (diff) | |
fix invalid assignment
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/parser.rb b/lib/asciidoctor/parser.rb index c8b6f86b..18f29656 100644 --- a/lib/asciidoctor/parser.rb +++ b/lib/asciidoctor/parser.rb @@ -819,7 +819,7 @@ class Parser unless block case block_context when :listing, :source - if block_context == :source || (language = attributes[1] ? nil : language = attributes[2] || doc_attrs['source-language']) + if block_context == :source || (language = attributes[1] ? nil : attributes[2] || doc_attrs['source-language']) if language attributes['style'] = 'source' attributes['language'] = language |
