From 1b1a94816ddc042c8e1f996393e403ae66dce40f Mon Sep 17 00:00:00 2001 From: Fintan Bolton Date: Wed, 4 Jan 2017 12:26:57 +0100 Subject: [PATCH] issue-16 Continuation logic in visit_listitem adjusted to accomodate procedures --- lib/docbookrx/docbook_visitor.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docbookrx/docbook_visitor.rb b/lib/docbookrx/docbook_visitor.rb index 8871330..d144b23 100644 --- a/lib/docbookrx/docbook_visitor.rb +++ b/lib/docbookrx/docbook_visitor.rb @@ -716,7 +716,7 @@ def visit_listitem node end local_continuation = false - unless i == 0 || first_line || (child.name == 'literallayout' || child.name == 'itemizedlist' || child.name == 'orderedlist') + unless i == 0 || first_line || (child.name == 'literallayout' || child.name == 'itemizedlist' || child.name == 'orderedlist' || child.name == 'procedure') append_line '+' @continuation = true local_continuation = true @@ -756,7 +756,7 @@ def visit_listitem node if first_line && ! local_continuation append_text ' {empty}' # necessary to fool asciidoctorj into thinking that this is a listitem end - unless local_continuation || (child.name == 'literallayout' || child.name == 'itemizedlist' || child.name == 'orderedlist') + unless local_continuation || (child.name == 'literallayout' || child.name == 'itemizedlist' || child.name == 'orderedlist' || child.name == 'procedure') append_line '+' end @continuation = false