Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
wants to merge 1 commit into from

0 participants

@GunioRobot

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.

Thanks!
WhiteSpacebot from Gun.io.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 29, 2011
  1. Remove whitespace [Gun.io WhitespaceBot]

    Gun.io Whitespace Robot authored
This page is out of date. Refresh to see the latest.
Showing with 90 additions and 90 deletions.
  1. +2 −2 LICENSE
  2. +8 −8 basic/blog/templates/admin/blog/post/change_form.html
  3. +1 −1  basic/blog/templates/blog/post_archive_year.html
  4. +1 −1  basic/blog/templates/blog/post_list.html
  5. +2 −2 basic/blog/templates/blog/post_search.html
  6. +4 −4 basic/books/templates/books/book_detail.html
  7. +1 −1  basic/comments/templates/comments/form.html
  8. +42 −42 basic/groups/fixtures/groups.json
  9. +1 −1  basic/groups/templates/groups/group_list.html
  10. +1 −1  basic/groups/templates/groups/pages/page_detail.html
  11. +1 −1  basic/media/templates/inlines/media_photo.html
  12. +1 −1  basic/media/templates/media/video_detail.html
  13. +3 −3 basic/movies/templates/movies/movie_detail.html
  14. +6 −6 basic/music/templates/music/album_detail.html
  15. +2 −2 basic/music/templates/music/band_detail.html
  16. +1 −1  basic/music/templates/music/index.html
  17. +3 −3 basic/people/templates/people/person_detail.html
  18. +1 −1  basic/places/templates/places/place_detail.html
  19. +1 −1  basic/places/templates/places/place_list.html
  20. +1 −1  basic/profiles/templates/profiles/profile_detail.html
  21. +7 −7 basic/profiles/templates/profiles/profile_form.html
View
4 LICENSE
@@ -1,9 +1,9 @@
Copyright (c) 2008-2009, Nathan Borror
All rights reserved.
-
+
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
-
+
Redistributions of source code must retain the above copyright notice, this list
of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this
View
16 basic/blog/templates/admin/blog/post/change_form.html
@@ -9,7 +9,7 @@
var content = ''
content += '{% get_inline_types as inline_list %}'
content += '<label>Body inlines:</label>'
-
+
content += '<strong>Inline type:</strong> '
content += '<select id="id_inline_content_type" onchange="document.getElementById(\'lookup_id_inline\').href = \'../../../\'+this.value+\'/\';" style="margin-right:20px;">'
content += ' <option>----------</option>'
@@ -17,11 +17,11 @@
content += ' <option value="{{ inline.content_type.app_label }}/{{ inline.content_type.model }}">{{ inline.content_type.app_label|capfirst }}: {{ inline.content_type.model|capfirst }}</option>'
content += ' {% endfor %}'
content += '</select> '
-
+
content += '<strong>Object:</strong> '
content += '<input type="text" class="vIntegerField" id="id_inline" size="10" /> '
content += '<a id="lookup_id_inline" href="#" class="related-lookup" onclick="if(document.getElementById(\'id_inline_content_type\').value != \'----------\') { return showRelatedObjectLookupPopup(this); }" style="margin-right:20px;"><img src="{% admin_media_prefix %}img/admin/selector-search.gif" width="16" height="16" alt="Loopup" /></a> '
-
+
content += '<strong>Class:</strong> '
content += '<select id="id_inline_class">'
content += ' <option value="small_left">Small left</option>'
@@ -32,17 +32,17 @@
content += ' <option value="large_right">Large right</option>'
content += ' <option value="full">Full</option>'
content += '</select>'
-
+
content += '<input type="button" value="Add" style="margin-left:10px;" onclick="return insertInline(document.getElementById(\'id_inline_content_type\').value, document.getElementById(\'id_inline\').value, document.getElementById(\'id_inline_class\').value)" />'
content += '<p class="help">Insert inlines into your body by choosing an inline type, then an object, then a class.</p>'
-
+
var div = document.createElement('div');
div.setAttribute('style', 'margin-top:10px;');
div.innerHTML = content;
-
+
body_div.insertBefore(div, document.getElementById('id_body').nextSibling);
}
-
+
function insertInline(type, id, classname) {
if (type != '----------' && id != '') {
inline = '<inline type="'+type.replace('/', '.')+'" id="'+id+'" class="'+classname+'" />';
@@ -50,7 +50,7 @@
body.value = body.value + inline + '\n';
}
}
-
+
addEvent(window, 'load', InlineInit);
</script>
{% endblock %}
View
2  basic/blog/templates/blog/post_archive_year.html
@@ -11,7 +11,7 @@
{% endblock %}
-{% block content %}
+{% block content %}
<ul class="link_list">
{% for month in date_list %}
<li><a href="{% url blog_index %}{{ year }}/{{ month|date:"b" }}/" title="{% trans "View items posted this month" %}">{{ month|date:"F" }}</a></li>
View
2  basic/blog/templates/blog/post_list.html
@@ -21,7 +21,7 @@ <h3 class="title"><a href="{{ post.get_absolute_url }}" title="{% trans "View th
</div>
{% endfor %}
</div>
-
+
{% if is_paginated %}
<p class="pagination">
{% if has_next %}
View
4 basic/blog/templates/blog/post_search.html
@@ -18,11 +18,11 @@
<input type="submit" class="button" value="{% trans "Search" %}">
</p>
</form>
-
+
{% if message %}
<p class="message">{{ message }}</p>
{% endif %}
-
+
{% if object_list %}
<div class="post_list">
{% for post in object_list %}
View
8 basic/books/templates/books/book_detail.html
@@ -14,13 +14,13 @@
{% load markup %}
<h3>{{ object.full_title }}
{% if object.subtitle %}<em>{{ object.subtitle }}</em>{% endif %}</h3>
-
+
{% if object.cover %}
<a class="cover" href="{{ object.amazon_url }}"><img src="{{ object.cover.url }}" alt="Book cover"></a>
{% else %}
<div class="no_cover"></div>
{% endif %}
-
+
<ul class="info_list">
<li>Author{{ object.authors.all|pluralize }}: {% for author in object.authors.all %}<a href="{{ author.get_absolute_url }}">{{ author.full_name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</li>
<li>Publisher: <a href="{{ object.publisher.get_absolute_url }}">{{ object.publisher.full_title }}</a></li>
@@ -29,14 +29,14 @@
<li>Genre: {% for genre in object.genre.all %}{{ genre.title }}{% if not forloop.last %}, {% endif %}{% endfor %}</li>
<li>ISBN: {{ object.isbn }} (<a href="{{ object.amazon_url }}">Amazon</a>)</li>
</ul>
-
+
{% if object.description %}
<div class="description">
<h4>Description</h4>
{{ object.description|markdown:"safe" }}
</div>
{% endif %}
-
+
{% if object.highlight_set.all %}
<div class="highlights">
<h4>Highlights</h4>
View
2  basic/comments/templates/comments/form.html
@@ -1,7 +1,7 @@
{% load stringutils comments i18n %}
<form action="{% comment_form_target %}" method="post">{% csrf_token %}
-
+
{% for field in form %}
{% if field.name == "honeypot" %}
View
84 basic/groups/fixtures/groups.json
@@ -1,64 +1,64 @@
[
{
- "pk": 1,
- "model": "groups.group",
+ "pk": 1,
+ "model": "groups.group",
"fields": {
- "tease": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
- "creator": 100,
- "is_active": true,
- "modified": "2010-07-04 12:37:27",
- "created": "2010-07-04 00:33:59",
- "invite_only": false,
- "title": "Infinite Summer",
- "slug": "infinite-summer",
+ "tease": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
+ "creator": 100,
+ "is_active": true,
+ "modified": "2010-07-04 12:37:27",
+ "created": "2010-07-04 00:33:59",
+ "invite_only": false,
+ "title": "Infinite Summer",
+ "slug": "infinite-summer",
"icon": ""
}
- },
+ },
{
- "pk": 1,
- "model": "groups.grouppage",
+ "pk": 1,
+ "model": "groups.grouppage",
"fields": {
- "body": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
- "group": 1,
- "created": "2010-07-04 12:37:27",
- "title": "About",
- "modified": "2010-07-04 12:37:27",
+ "body": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
+ "group": 1,
+ "created": "2010-07-04 12:37:27",
+ "title": "About",
+ "modified": "2010-07-04 12:37:27",
"slug": "about"
}
- },
+ },
{
- "pk": 1,
- "model": "groups.grouptopic",
+ "pk": 1,
+ "model": "groups.grouptopic",
"fields": {
- "group": 1,
- "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
- "created": "2010-07-04 00:38:12",
- "title": "I have a topic to talk about",
- "is_active": true,
- "modified": "2010-07-04 12:39:12",
+ "group": 1,
+ "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
+ "created": "2010-07-04 00:38:12",
+ "title": "I have a topic to talk about",
+ "is_active": true,
+ "modified": "2010-07-04 12:39:12",
"user": 100
}
- },
+ },
{
- "pk": 1,
- "model": "groups.groupmessage",
+ "pk": 1,
+ "model": "groups.groupmessage",
"fields": {
- "created": "2010-07-04 00:38:17",
- "is_active": true,
- "modified": "2010-07-04 00:38:17",
- "topic": 1,
- "user": 100,
+ "created": "2010-07-04 00:38:17",
+ "is_active": true,
+ "modified": "2010-07-04 00:38:17",
+ "topic": 1,
+ "user": 100,
"message": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
}
- },
+ },
{
- "pk": 1,
- "model": "groups.groupmember",
+ "pk": 1,
+ "model": "groups.groupmember",
"fields": {
- "status": 0,
- "group": 1,
- "user": 100,
- "modified": "2010-07-04 00:33:59",
+ "status": 0,
+ "group": 1,
+ "user": 100,
+ "modified": "2010-07-04 00:33:59",
"created": "2010-07-04 00:33:59"
}
}
View
2  basic/groups/templates/groups/group_list.html
@@ -32,7 +32,7 @@
</ul>
</div>
{% endif %}
-
+
{% if user.is_authenticated %}
<p><a class="button" href="{% url groups:create %}?next={{ request.path }}">Start a group</a></p>
{% endif %}
View
2  basic/groups/templates/groups/pages/page_detail.html
@@ -13,6 +13,6 @@
{{ page.body|markdown }}
- <p class="byline">Modifed {{ page.modified|timesince }} ago.
+ <p class="byline">Modifed {{ page.modified|timesince }} ago.
{% if group|is_owner:user %}<a class="edit" href="{% url groups:page_edit group.slug, page.slug %}">Edit</a>{% endif %}</p>
{% endblock %}
View
2  basic/media/templates/inlines/media_photo.html
@@ -15,7 +15,7 @@
{% else %}
<div{% if class %} class="{{ class }}"{% endif %}>
- {% for object in object_list %}
+ {% for object in object_list %}
<p class="photo">
<a href="{% url photo_detail object.slug %}" title="{% trans "View the full image" %}"><img src="{{ settings.MEDIA_URL }}{{ object.photo }}" alt="{{ object }}" /></a>
</p>
View
2  basic/media/templates/media/video_detail.html
@@ -10,5 +10,5 @@
{% block content %}
-
+
{% endblock %}
View
6 basic/movies/templates/movies/movie_detail.html
@@ -14,13 +14,13 @@
{% load markup %}
<h3>{{ object.full_title }}
{% if object.subtitle %}<em>{{ object.subtitle }}</em></h3>{% endif %}
-
+
{% if object.cover %}
<a class="cover" href="{{ object.amazon_url }}"><img src="{{ object.cover_url }}" alt="Movie cover"></a>
{% else %}
<div class="no_cover"></div>
{% endif %}
-
+
<ul class="info_list">
<li>Directors: {% for director in object.directors.all %}<a href="{{ director.get_absolute_url }}">{{ director.full_name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</li>
<li>Studio: <a href="{{ object.studio.get_absolute_url }}">{{ object.studio.full_title }}</a></li>
@@ -28,7 +28,7 @@
<li>Genre: {% for genre in object.genre.all %}{{ genre.title }}{% if not forloop.last %}, {% endif %}{% endfor %}</li>
<li>ASIN: {{ object.asin }} (<a href="{{ object.amazon_url }}">Amazon</a>)</li>
</ul>
-
+
{% if object.review %}
<div class="review">
<h4>Review</h4>
View
12 basic/music/templates/music/album_detail.html
@@ -15,27 +15,27 @@
{% load markup %}
<h3>{{ object.full_title }}
<em><a href="{{ object.band.get_absolute_url }}">{{ object.band.full_title }}</a></em></h3>
-
+
{% if object.cover %}
<a class="cover" href="{{ object.amazon_url }}"><img src="{{ object.cover_url }}" alt="Album cover"></a>
{% else %}
<div class="no_cover"></div>
{% endif %}
-
+
<ul class="info_list">
<li>Label: <a href="{{ object.label.get_absolute_url }}">{{ object.label.full_title }}</a></li>
<li>Released: {{ object.released|date:"d F Y" }}</li>
<li>Genre: {% for genre in object.genre.all %}{{ genre.title }}{% if not forloop.last %}, {% endif %}{% endfor %}</li>
<li>ASIN: {{ object.asin }} (<a href="{{ object.amazon_url }}">Amazon</a>)</li>
</ul>
-
+
{% if object.review %}
<div class="review">
<h3>Review</h3>
{{ object.review|markdown:"safe" }}
</div>
{% endif %}
-
+
{% if object.band.album_set.all %}
{% ifnotequal object.band.album_set.count 1 %}
<h4>Other albums</h4>
@@ -48,7 +48,7 @@
</ul>
{% endifnotequal %}
{% endif %}
-
+
{% if object.tracks.all %}
<h4>Mp3's</h4>
<ul>
@@ -57,5 +57,5 @@
{% endfor %}
</ul>
{% endif %}
-
+
{% endblock %}
View
4 basic/music/templates/music/band_detail.html
@@ -13,7 +13,7 @@
{% block content %}
<h3>{{ object.full_title }} <em><a href="{{ object.website }}">Website</a></em></h3>
-
+
{% if object.musicians.all %}
<h4>Members</h4>
<ul class="link_list">
@@ -22,7 +22,7 @@
{% endfor %}
</ul>
{% endif %}
-
+
{% if object.album_set.all %}
<h4>Albums</h4>
<ul class="link_list">
View
2  basic/music/templates/music/index.html
@@ -10,5 +10,5 @@
{% endblock %}
{% block content %}
-
+
{% endblock %}
View
6 basic/people/templates/people/person_detail.html
@@ -21,7 +21,7 @@ <h3 class="list_title">Books</h3>
{% endfor %}
</ul>
{% endif %}
-
+
{% if object.band_set.all %}
<h3 class="list_title">Bands</h3>
<ul class="link_list">
@@ -30,7 +30,7 @@ <h3 class="list_title">Bands</h3>
{% endfor %}
</ul>
{% endif %}
-
+
{% if object.movie_set.all %}
<h3 class="list_title">Movies</h3>
<ul class="link_list">
@@ -39,5 +39,5 @@ <h3 class="list_title">Movies</h3>
{% endfor %}
</ul>
{% endif %}
-
+
{% endblock %}
View
2  basic/places/templates/places/place_detail.html
@@ -33,7 +33,7 @@ <h3 class="address">{{ object.point.address }}, <a href="{{ object.point.city.ge
<li><a href="mailto:{{ object.email }}">Email</a></li>
<li>Type: {% for type in object.place_types.all %}<a href="{{ type.get_absolute_url }}">{{ type }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</li>
</ul>
-
+
{% if object.description %}
<div class="description">
<h3>Description</h3>
View
2  basic/places/templates/places/place_list.html
@@ -16,7 +16,7 @@
<li><a href="{{ place.get_absolute_url }}">{{ place.title }}</a></li>
{% endfor %}
</ul>
-
+
{% if is_paginated %}
<p class="pagination">
{% if has_next %}
View
2  basic/profiles/templates/profiles/profile_detail.html
@@ -20,7 +20,7 @@ <h3 class="list_title">Services</h3>
{% endfor %}
</ul>
{% endif %}
-
+
{% if object.user.link_set.all %}
<h3 class="list_title">Links</h3>
<ul class="link_list">
View
14 basic/profiles/templates/profiles/profile_form.html
@@ -16,33 +16,33 @@
{{ user_form.as_table }}
{{ profile_form.as_table }}
</table>
-
+
<fieldset>
<h4>Other profiles <small>(e.g. Flickr, Twitter, etc.)</small></h4>
{{ service_formset.management_form }}
-
+
{% for form in service_formset.forms %}
<ul class="service">
{{ form.as_ul }}
</ul>
{% endfor %}
-
+
<p class="quiet">To add more services than displayed save and continue editing.</p>
</fieldset>
-
+
<fieldset>
<h4>Personal links <small>(Example: Your blog, you personal site, etc.)</small></h4>
{{ link_formset.management_form }}
-
+
{% for form in link_formset.forms %}
<ul class="link">
{{ form.as_ul }}
</ul>
{% endfor %}
-
+
<p class="quiet">To add more links than displayed save and continue editing.</p>
</fieldset>
-
+
<p><input class="button" type="submit" value="Save"></p>
</form>
{% endblock %}
Something went wrong with that request. Please try again.