Another one...
This commit is contained in:
parent
e4b00f0bff
commit
f6d350302c
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ Example:
|
||||||
|
|
||||||
|
|
||||||
# Create title element
|
# 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::Element.new('title', doc)
|
||||||
title << Nokogiri::XML::Text.new(doc_title, doc)
|
title << Nokogiri::XML::Text.new(doc_title, doc)
|
||||||
head << title
|
head << title
|
||||||
|
|
Loading…
Add table
Reference in a new issue