$ ruby -cW lib/docbookrx/docbook_visitor.rb
lib/docbookrx/docbook_visitor.rb:346: warning: mismatched indentations at 'end' with 'def' at 343
lib/docbookrx/docbook_visitor.rb:601: warning: assigned but unused variable - elements
lib/docbookrx/docbook_visitor.rb:642: warning: mismatched indentations at 'end' with 'def' at 634
lib/docbookrx/docbook_visitor.rb:998: warning: possibly useless use of +@ in void context
lib/docbookrx/docbook_visitor.rb:1292: warning: shadowing outer local variable - node
lib/docbookrx/docbook_visitor.rb:1453: warning: ambiguous first argument; put parentheses or a space even after `/' operator
Syntax OK
After modification
$ ruby -cW lib/docbookrx/docbook_visitor.rb
Syntax OK
I fixed for warning messages.
Because if we keep such kind of warning messages, it makes us hard to find new warnings, and it leads up new warnings
It is "Broken windows theory" https://en.wikipedia.org/wiki/Broken_windows_theory
About the fix of L988, I followed popular style, max line length: 80 byte that is used for rubocop.
Before modification
After modification