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 | dd98c70eac0c21e00db066323bc02b8fc09263db (patch) | |
tree | ebf6c5792ac098deb1d39699a4a339cc9f044ec1 | |
parent | 505857c5cff6a41a7f5ef3c6f1341927239887a2 (diff) | |
download | ruby-dd98c70eac0c21e00db066323bc02b8fc09263db.tar.gz ruby-dd98c70eac0c21e00db066323bc02b8fc09263db.tar.xz ruby-dd98c70eac0c21e00db066323bc02b8fc09263db.zip |
* lib/rss/rss.rb: removed empty lines from output.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/rss/rss.rb | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sat Dec 4 18:54:09 2004 Kouhei Sutou <kou@cozmixng.org> + + * lib/rss/rss.rb: removed empty lines from output. + Sat Dec 4 18:49:09 2004 Kouhei Sutou <kou@cozmixng.org> * lib/rss/rss.rb (RSS::VERSION): 0.1.1 -> 0.1.2 diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index fc1dabf51..11fe6d6dd 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 |