lib/stepmod/utils/converters/figure.rb in stepmod-utils-0.4.14 vs lib/stepmod/utils/converters/figure.rb in stepmod-utils-0.5.0

- old
+ new

@@ -18,14 +18,14 @@ def convert(node, state = {}) # If we want to skip this node return "" if state[:no_notes_examples] # Set ID to "figure-id" in case of conflicts - node['id'] = if node['id'] - self.class.pattern(state, node['id']) - else - self.class.pattern(state, node['number']) - end + node["id"] = if node["id"] + self.class.pattern(state, node["id"]) + else + self.class.pattern(state, node["number"]) + end super(node, state) end end