From 3b5afa4d5f277672feb7fc4d07df331ed970aa1c Mon Sep 17 00:00:00 2001 From: Dashamir Hoxha Date: Thu, 12 Oct 2023 10:43:22 +0200 Subject: [PATCH] resolves #6 handle part elements (PR #69) --- lib/docbookrx/docbook_visitor.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/docbookrx/docbook_visitor.rb b/lib/docbookrx/docbook_visitor.rb index b6b55f3..631956e 100644 --- a/lib/docbookrx/docbook_visitor.rb +++ b/lib/docbookrx/docbook_visitor.rb @@ -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 root element as books if node == node.document.root