Skip to content

Commit

Permalink
issue-16 Continuation logic in visit_listitem adjusted to accomodate …
Browse files Browse the repository at this point in the history
…procedures
  • Loading branch information
fbolton committed Jan 4, 2017
1 parent f79a6db commit 1b1a948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/docbookrx/docbook_visitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1b1a948

Please sign in to comment.