Commit 59fc7530 authored by KitaitiMakoto's avatar KitaitiMakoto

Use xml namespace for xml:lang

parent d9d66a82
......@@ -88,7 +88,8 @@ module EPUB
model = EPUB::Metadata.const_get(klass).new
attributes.each do |attr|
writer_name = (attr == "content") ? "meta_content=" : "#{attr.gsub('-', '_')}="
model.__send__ writer_name, elem.attribute_with_prefix(attr)
namespace = (attr == "lang") ? "xml" : nil
model.__send__ writer_name, elem.attribute_with_prefix(attr, namespace)
end
model.content = elem.content unless klass == :Link
model.content.strip! if klass == :Identifier
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment