diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2023-04-13 03:26:45 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2023-04-13 03:26:45 -0600 |
| commit | 447442b23e364524444789333aab2941a7cdb7d2 (patch) | |
| tree | 7dd5e56f940b68e1e5e08fe0992a706ffcc2ed7d /lib | |
| parent | 9e9fed5977e65743a1ee3210eb233029379bbaea (diff) | |
remove redundant lookup of role when converting link
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/pdf/converter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/pdf/converter.rb b/lib/asciidoctor/pdf/converter.rb index 424b762e..146d11dd 100644 --- a/lib/asciidoctor/pdf/converter.rb +++ b/lib/asciidoctor/pdf/converter.rb @@ -2453,7 +2453,7 @@ module Asciidoctor bare_target = target text = node.text end - if (role = node.attr 'role') && (role == 'bare' || (role.split.include? 'bare')) + if role && (role == 'bare' || (role.split.include? 'bare')) # QUESTION: should we insert breakable chars into URI when building fragment instead? %(#{anchor}<a href="#{target}"#{attrs.join}>#{breakable_uri text}</a>) # NOTE: @media may not be initialized if method is called before convert phase |
