diff --git a/lib/isodoc/presentation_function/block.rb b/lib/isodoc/presentation_function/block.rb index 2da9adf5..f769cd1c 100644 --- a/lib/isodoc/presentation_function/block.rb +++ b/lib/isodoc/presentation_function/block.rb @@ -151,7 +151,17 @@ def dl(docxml) end def dl1(elem) - prefix_name(elem, {}, "", "name") # copy name to fmt-name + elem.at(ns("./name")) and + prefix_name(elem, {}, "", "name") # copy name to fmt-name + end + + def ul(docxml) + docxml.xpath(ns("//ul")).each { |f| ul1(f) } + end + + def ul1(elem) + elem.at(ns("./name")) and + prefix_name(elem, {}, "", "name") # copy name to fmt-name end def ol(docxml) @@ -178,6 +188,8 @@ def ol1(elem) elem.xpath(ns("./li")).each do |li| li["id"] ||= "_#{UUIDTools::UUID.random_create}" end + elem.at(ns("./name")) and + prefix_name(elem, {}, "", "name") # copy name to fmt-name end def ol_label(elem) diff --git a/lib/isodoc/presentation_xml_convert.rb b/lib/isodoc/presentation_xml_convert.rb index 3f81acb0..3a0a49d6 100644 --- a/lib/isodoc/presentation_xml_convert.rb +++ b/lib/isodoc/presentation_xml_convert.rb @@ -79,6 +79,7 @@ def block(docxml) note docxml admonition docxml source docxml + ul docxml ol docxml dl docxml quote docxml