Skip to content

Commit

Permalink
remove brackets around Hash where optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Sep 3, 2019
1 parent 645e31f commit 141acea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/asciidoctor-pdf/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ def convert_listing_or_literal node
conum_mapping ? (restore_conums fragments, conum_mapping) : fragments
else
# NOTE only format if we detect a need (callouts or inline formatting)
(XMLMarkupRx.match? source_string) ? (text_formatter.format source_string) : [{ text: source_string }]
(XMLMarkupRx.match? source_string) ? (text_formatter.format source_string) : [text: source_string]
end

node.subs.replace prev_subs if prev_subs
Expand Down Expand Up @@ -3291,7 +3291,7 @@ def add_outline_level outline, sections, num_levels
if (level = sect.level) == num_levels || !sect.sections?
outline.page title: sect_title, destination: sect_destination
elsif level <= num_levels
outline.section sect_title, { destination: sect_destination } do
outline.section sect_title, destination: sect_destination do
add_outline_level outline, sect.sections, num_levels
end
end
Expand Down

0 comments on commit 141acea

Please sign in to comment.