diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-08-25 23:58:55 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2022-08-26 13:44:56 -0600 |
| commit | 3e60533399cf19804bc54de2b9de052d17c0742a (patch) | |
| tree | 599fb6f534fa05341c4e385d1bc4a018ea304186 /lib | |
| parent | 8483ee1eb27eb647d99d1d9683edf6801c646111 (diff) | |
set default value of unused _opts argument to nil to indicate intent
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 b150f30e..676ac4d2 100644 --- a/lib/asciidoctor/pdf/converter.rb +++ b/lib/asciidoctor/pdf/converter.rb @@ -626,7 +626,7 @@ module Asciidoctor end end - def convert_section sect, _opts = {} + def convert_section sect, _opts = nil if (sectname = sect.sectname) == 'abstract' # HACK: cheat a bit to hide this section from TOC; TOC should filter these sections sect.context = :open |
