Skip to content

Commit

Permalink
see #469 only respect role in list items
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed May 12, 2024
1 parent b19c5cd commit 24c15fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/asciidoctor-epub3/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ def convert_olist(node)
lines << %(<h3 class="list-heading">#{node.title}</h3>) if node.title?
lines << %(<ol#{ol_class_attr}#{ol_start_attr}#{node.option?('reversed') ? ' reversed="reversed"' : ''}>)
node.items.each do |item|
li_classes = [item.style, item.role].compact
li_classes = [item.role].compact
li_class_attr = li_classes.empty? ? '' : %( class="#{li_classes * ' '}")
lines << %(<li#{li_class_attr}>
<span class="principal">#{item.text}</span>)
Expand Down Expand Up @@ -988,7 +988,7 @@ def convert_ulist(node)
lines << %(<h3 class="list-heading">#{node.title}</h3>) if node.title?
lines << %(<ul#{ul_class_attr}>)
node.items.each do |item|
li_classes = [item.style, item.role].compact
li_classes = [item.role].compact
li_class_attr = li_classes.empty? ? '' : %( class="#{li_classes * ' '}")
lines << %(<li#{li_class_attr}>
<span class="principal">#{item.text}</span>)
Expand Down

0 comments on commit 24c15fe

Please sign in to comment.