lib/isodoc/section.rb in isodoc-0.5.5 vs lib/isodoc/section.rb in isodoc-0.5.7
- old
+ new
@@ -1,21 +1,22 @@
module IsoDoc
class Convert
def inline_header_title(out, node, c1)
out.span **{ class: "zzMoveToFollowing" } do |s|
s.b do |b|
- b << "#{get_anchors[node['id']][:label]}. #{c1.text} "
+ b << "#{get_anchors[node['id']][:label]}. #{c1.content} "
end
end
end
def clause_parse_title(node, div, c1, out)
if node["inline-header"] == "true"
inline_header_title(out, node, c1)
else
div.send "h#{get_anchors[node['id']][:level]}" do |h|
- h << "#{get_anchors[node['id']][:label]}. #{c1.text}"
+ h << "#{get_anchors[node['id']][:label]}. "
+ c1.children.each { |c2| parse(c2, h) }
end
end
end
def clause_parse(node, out)
@@ -47,10 +48,10 @@
next if c.at(ns("./title")).text == "Scope"
out.div **attr_code(id: c["id"]) do |s|
c.elements.each do |c1|
if c1.name == "title"
clause_name("#{get_anchors[c['id']][:label]}.",
- c1.text, s, nil)
+ c1.content, s, nil)
else
parse(c1, s)
end
end
end