summaryrefslogtreecommitdiffstats
path: root/lib/rss/rss.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-17 00:21:24 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-17 00:21:24 +0000
commit6e3ea97cbca7fa3eed47d74cf03353b2213902fd (patch)
treec7b04a374b294bc82c6e40de9d2d526b26b24661 /lib/rss/rss.rb
parenta79f93a4731ec59d11137d5265b38cac48fa39f4 (diff)
downloadruby-6e3ea97cbca7fa3eed47d74cf03353b2213902fd.tar.gz
ruby-6e3ea97cbca7fa3eed47d74cf03353b2213902fd.tar.xz
ruby-6e3ea97cbca7fa3eed47d74cf03353b2213902fd.zip
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
* lib/rss/rss.rb: fixed a indentation bug. * lib/rss/taxonomy.rb: fixed <taxo:topic> #to_s bug. * test/rss/test_taxonomy.rb: added a #to_s test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/rss.rb')
-rw-r--r--lib/rss/rss.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb
index d2b760448..7ccf1aefa 100644
--- a/lib/rss/rss.rb
+++ b/lib/rss/rss.rb
@@ -725,8 +725,8 @@ EOC
private_methods.each do |meth|
if /\A([^_]+)_[^_]+_elements?\z/ =~ meth and
self.class::NSPOOL.has_key?($1)
- res = __send__(meth, need_convert)
- rv << "#{indent}#{res}" if /\A\s*\z/ !~ res
+ res = __send__(meth, need_convert, indent)
+ rv << res if /\A\s*\z/ !~ res
end
end
rv.join("\n")