lib/plurimath/math/function/frac.rb in plurimath-0.3.5 vs lib/plurimath/math/function/frac.rb in plurimath-0.3.6
- old
+ new
@@ -32,21 +32,19 @@
end
def to_omml_without_math_tag
f_element = Utility.ox_element("f", namespace: "m")
fpr_element = Utility.ox_element("fPr", namespace: "m")
- num_element = Utility.ox_element("num", namespace: "m")
- num_element << parameter_one.to_omml_without_math_tag if parameter_one
- den_element = Utility.ox_element("den", namespace: "m")
- den_element << parameter_two.to_omml_without_math_tag if parameter_two
+ fpr_element << Utility.pr_element("ctrl", true, namespace: "m")
Utility.update_nodes(
f_element,
[
- fpr_element << Utility.pr_element("ctrl", true, namespace: "m"),
- num_element,
- den_element,
+ fpr_element,
+ omml_parameter(parameter_one, tag_name: "num"),
+ omml_parameter(parameter_two, tag_name: "den"),
],
)
+ [f_element]
end
end
end
end
end