Skip to content

Commit

Permalink
fix invalid assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Mar 8, 2024
1 parent f39b62e commit e85b239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/asciidoctor/parser.rb
Expand Up @@ -818,7 +818,7 @@ def self.next_block(reader, parent, attributes = {}, options = {})
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
Expand Down

0 comments on commit e85b239

Please sign in to comment.