From 24c15fe32306a21a691b2b365c1685c43c5a7deb Mon Sep 17 00:00:00 2001 From: Marat Radchenko Date: Sun, 12 May 2024 17:01:36 +0300 Subject: [PATCH] see #469 only respect role in list items --- lib/asciidoctor-epub3/converter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/asciidoctor-epub3/converter.rb b/lib/asciidoctor-epub3/converter.rb index 257d3b0..b227afd 100644 --- a/lib/asciidoctor-epub3/converter.rb +++ b/lib/asciidoctor-epub3/converter.rb @@ -959,7 +959,7 @@ def convert_olist(node) lines << %(

#{node.title}

) if node.title? lines << %() 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 << %( #{item.text}) @@ -988,7 +988,7 @@ def convert_ulist(node) lines << %(

#{node.title}

) if node.title? lines << %() 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 << %( #{item.text})