Skip to content

Commit

Permalink
resolves #6 handle part elements (PR #69)
Browse files Browse the repository at this point in the history
  • Loading branch information
dashohoxha authored Oct 12, 2023
1 parent 67bc9c0 commit 3b5afa4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/docbookrx/docbook_visitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@ def visit_info node
alias :visit_bookinfo :visit_info
alias :visit_articleinfo :visit_info

def visit_part node
visit_chapter node
end

def visit_chapter node
# treat document with <chapter> root element as books
if node == node.document.root
Expand Down

0 comments on commit 3b5afa4

Please sign in to comment.