This commit is contained in:
@@ -16,11 +16,8 @@ module Notare
|
||||
xml.numbering("xmlns:w" => NAMESPACE) do
|
||||
xml.parent.namespace = xml.parent.namespace_definitions.find { |ns| ns.prefix == "w" }
|
||||
|
||||
@lists.each do |list|
|
||||
render_abstract_num(xml, list)
|
||||
|
||||
render_num(xml, list)
|
||||
end
|
||||
render_abstract_nums(xml)
|
||||
render_nums(xml)
|
||||
end
|
||||
end
|
||||
builder.to_xml
|
||||
@@ -28,6 +25,14 @@ module Notare
|
||||
|
||||
private
|
||||
|
||||
def render_abstract_nums(xml)
|
||||
@lists.each { |list| render_abstract_num(xml, list) }
|
||||
end
|
||||
|
||||
def render_nums(xml)
|
||||
@lists.each { |list| render_num(xml, list) }
|
||||
end
|
||||
|
||||
def render_abstract_num(xml, list)
|
||||
xml["w"].abstractNum("w:abstractNumId" => list.num_id.to_s) do
|
||||
9.times do |level|
|
||||
|
||||
Reference in New Issue
Block a user