Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Hi! I cleaned up your code for you! #6

merged 1 commit into from

1 participant


Hi there!

This is WhitespaceBot. I'm an open-source robot that removes trailing white space in your code, and gives you a gitignore file if you didn't have one!

Why whitespace? Whitespace is an eyesore for developers who use text editors with dark themes. It's not a huge deal, but it's a bit annoying if you use Vim in a terminal. Really, I'm just a proof of concept - GitHub's V3 API allows robots to automatically improve open source projects, and that's really cool. Hopefully, somebody, maybe you!, will fork me and make me even more useful. My owner is funding a bounty to anybody who can add security fixing features to me.

I've only cleaned your most popular project, and I've added you to a list of users not to contact again, so you won't get any more pull requests from me unless you ask. If I'm misbehaving, please email my owner and tell him to turn me off! If this is pull request is of no use to you, please just ignore it.

WhiteSpacebot from

@aasmith aasmith merged commit 5c93156 into aasmith:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 27, 2011
  1. Remove whitespace [ WhitespaceBot] Whitespace Robot committed
This page is out of date. Refresh to see the latest.
2  lib/html-cleaner.rb
@@ -81,7 +81,7 @@ def clean(str)
element.raw_attributes = element.raw_attributes.build_hash {|a,v| [a, add_entities(v)]}
end unless remaining_tags.empty?
doc.traverse_text do |t|
4 lib/parsers/rss.rb
@@ -85,7 +85,7 @@ def self.package(rss, loose)
unless rss_item.title.nil? && rss_item.description.nil? # some feeds return empty items
feed_entry =
map_functions!(item_mapping, rss_item, feed_entry)
# custom item elements = rss_item.guid.content if rss_item.respond_to?(:guid) && rss_item.guid
# fall back to link for ID
@@ -94,7 +94,7 @@ def self.package(rss, loose)
feed_entry.categories = loose ?
rss_item.categories.collect{|c|c.content} :
[rss_item.categories.first.content] rescue []
feed.entries << feed_entry
4 lib/parsers/simple-rss.rb
@@ -103,13 +103,13 @@ def self.package(atomrss)
unless atomrss_entry.title.nil? && atomrss_entry.description.nil? # some feeds return empty items
feed_entry =
map_functions!(entry_mapping, atomrss_entry, feed_entry)
# custom entry elements = atomrss_entry.guid || atomrss_entry[:id] # entries are a Hash..
# fall back to link for ID ||= if atomrss_entry.respond_to?(:link) &&
feed_entry.copyright = atomrss_entry.copyright || (atomrss.respond_to?(:copyright) ? atomrss.copyright : nil)
feed.entries << feed_entry
4 test/test_feednormalizer.rb
@@ -243,8 +243,8 @@ def test_html_should_be_escaped_by_default
def test_relative_links_and_images_should_be_rewritten_with_url_base
feed = FeedNormalizer::FeedNormalizer.parse(XML_FILES[:atom03])
- assert_match '<a href=";pubid=21000000000053626"' +
- ' target=_"blank"><img src=""' +
+ assert_match '<a href=";pubid=21000000000053626"' +
+ ' target=_"blank"><img src=""' +
' width="150" height="150" border="0" style="float: right; margin: 0px 0px 5px 5px;" /></a>',
Something went wrong with that request. Please try again.