lib/isodoc/function/inline.rb in isodoc-2.5.10 vs lib/isodoc/function/inline.rb in isodoc-2.6.0
- old
+ new
@@ -36,11 +36,11 @@
end
end
def xref_parse(node, out)
target = if /#/.match?(node["target"])
- node["target"].sub(/#/, ".html#")
+ node["target"].sub("#", ".html#")
else
"##{node['target']}"
end
out.a(href: target) { |l| no_locality_parse(node, l) }
end
@@ -148,10 +148,10 @@
node.children.each { |n| parse(n, e) }
end
end
def error_parse(node, out)
- text = node.to_xml.gsub(/</, "<").gsub(/>/, ">")
+ text = node.to_xml.gsub("<", "<").gsub(">", ">")
out.para do |p|
p.b(role: "strong") { |e| e << text }
end
end
end