Another one...

This commit is contained in:
Jacques Distler 2011-09-23 01:25:52 -05:00
parent e4b00f0bff
commit f6d350302c

View file

@ -206,7 +206,7 @@ Example:
# Create title element
doc_title = self[:title] || self[:subject] || ""
doc_title = self.attributes[:title] || self.attributes[:subject] || ""
title = Nokogiri::XML::Element.new('title', doc)
title << Nokogiri::XML::Text.new(doc_title, doc)
head << title