diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-02 16:21:11 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-02 16:21:11 +0000 |
commit | 16c28232cc09a1f5968ad98e6ec87c95f2764978 (patch) | |
tree | dfa58e8bb6a8de56630722c4924bcbb761d71788 /lib/rss/1.0.rb | |
parent | 8a0ffdcefec663a2c11792d2df10fb814f200a6a (diff) | |
download | ruby-16c28232cc09a1f5968ad98e6ec87c95f2764978.tar.gz ruby-16c28232cc09a1f5968ad98e6ec87c95f2764978.tar.xz ruby-16c28232cc09a1f5968ad98e6ec87c95f2764978.zip |
* lib/rss/converter.rb: handled Uconv::Error.
* lib/rss/dublincore.rb: DublincoreModel -> DublinCoreModel
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/1.0.rb')
-rw-r--r-- | lib/rss/1.0.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/rss/1.0.rb b/lib/rss/1.0.rb index d3c337eec..cd645eedb 100644 --- a/lib/rss/1.0.rb +++ b/lib/rss/1.0.rb @@ -75,11 +75,11 @@ EORDF private def xmldecl - rv = "<?xml version='#{@version}'" + rv = %Q[<?xml version="#{@version}"] if @output_encoding or @encoding - rv << " encoding='#{@output_encoding or @encoding}'" + rv << %Q[ encoding="#{@output_encoding or @encoding}"] end - rv << " standalone='#{@standalone}'" if @standalone + rv << %Q[ standalone="#{@standalone}"] if @standalone rv << '?>' rv end @@ -138,10 +138,10 @@ EORDF def to_s(convert=true) <<-EOT - <#{PREFIX}:Seq> -#{li_elements(convert, "\t\t\t\t\t")} -#{other_element(convert, "\t\t\t\t\t")} - </#{PREFIX}:Seq> + <#{PREFIX}:Seq> +#{li_elements(convert, "\t\t\t\t")} +#{other_element(convert, "\t\t\t\t")} + </#{PREFIX}:Seq> EOT end @@ -189,7 +189,7 @@ EOT def to_s(convert=true) if @resource - rv = %Q!<#{PREFIX}:li resource="#{h @resource}" />! + rv = %Q!<#{PREFIX}:li resource="#{h @resource}" />\n! rv = @converter.convert(rv) if convert and @converter rv else |