diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-04 09:55:29 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-04 09:55:29 +0000 |
commit | 500bd1f033c8c0f2e7bbe8d864334681be1ce0b5 (patch) | |
tree | ebf6c5792ac098deb1d39699a4a339cc9f044ec1 /lib/rss | |
parent | 636e37fcb940f845c2323e055f063cd4aec5f7d4 (diff) | |
download | ruby-500bd1f033c8c0f2e7bbe8d864334681be1ce0b5.tar.gz |
* lib/rss/rss.rb: removed empty lines from output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss')
-rw-r--r-- | lib/rss/rss.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index fc1dabf518..11fe6d6dd1 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -183,7 +183,8 @@ EOC <<-EOC rv = [] @#{n}.each do |x| - rv << "\#{x.to_s(convert, indent)}" + value = "\#{x.to_s(convert, indent)}" + rv << value if /\\A\\s*\\z/ !~ value end rv.join("\n") EOC |