Remove trailing space characters

Trailing space characters do nothing except take up disk space, they should be removed
This commit is contained in:
Aaron Franke
2020-10-04 05:15:02 -04:00
parent 191b528ad7
commit 6cdafdf136
19 changed files with 41 additions and 41 deletions

2
.env
View File

@@ -35,7 +35,7 @@
# Put these in .env.production or .env.development to define your dev/prod
# databases. Do not define it in .env or .env.local! It will be taken as your
# test database too, and rails will wipe it if you run the test suite.
#
#
# If you are connecting to PostgreSQL via socket, omit the hostname (e.g.
# postgresql:///danbooru2)
# export DATABASE_URL="postgresql://localhost/danbooru2"

View File

@@ -2,13 +2,13 @@ Copyright (c) 2013, Danbooru Project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@@ -22,5 +22,5 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies,
of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.

View File

@@ -10,7 +10,7 @@ simple to adapt for other platforms.
For best performance, you will need at least 256MB of RAM for
PostgreSQL and Rails. The memory requirement will grow as your
database gets bigger.
database gets bigger.
On production Danbooru uses PostgreSQL 9.4, but any 9.x release should
work.
@@ -41,7 +41,7 @@ debug your Nginx configuration file.
## Services
Danbooru employs numerous external services to delegate some
Danbooru employs numerous external services to delegate some
functionality.
For development purposes, you can just run mocked version of these
@@ -50,7 +50,7 @@ automatically using Foreman and the provided Procfile.
### Amazon Web Services
In order to enable the following features, you will need an AWS SQS
In order to enable the following features, you will need an AWS SQS
account:
* Pool versions
@@ -68,11 +68,11 @@ The following features requires a Google API account:
### IQDB Service
IQDB integration is delegated to the [IQDBS service](https://github.com/r888888888/iqdbs).
IQDB integration is delegated to the [IQDBS service](https://github.com/r888888888/iqdbs).
### Archive Service
In order to access versioned data for pools and posts you will
In order to access versioned data for pools and posts you will
need to install and configure the [Archives service](https://github.com/r888888888/archives).
### Reportbooru Service

View File

@@ -30,7 +30,7 @@
<%= format_text(comment.body, data: dtext_data) %>
</div>
<%= render "application/update_notice", record: comment %>
<% if policy(comment).create? %>
<menu>
<% if context == :index_by_comment %>

View File

@@ -1,5 +1,5 @@
<%-
# votes
<%-
# votes
# forum_post
%>

View File

@@ -1,5 +1,5 @@
<% if policy(forum_post).show_deleted? %>
<article class="forum-post message" id="forum_post_<%= forum_post.id %>"
<article class="forum-post message" id="forum_post_<%= forum_post.id %>"
data-forum-post-id="<%= forum_post.id %>"
<% if policy(moderation_reports).show? %>
data-is-reported="<%= moderation_reports.pluck(:model_id).include?(forum_post.id) %>"

View File

@@ -1,7 +1,7 @@
<% content_for(:secondary_links) do %>
<%= quick_search_form_for(:body_matches, forum_posts_path, "forum posts") %>
<%= subnav_link_to "Listing", forum_topics_path %>
<% if policy(ForumTopic).create? %>
<%= subnav_link_to "New", new_forum_topic_path %>
<% end %>
@@ -14,7 +14,7 @@
<% else %>
<%= subnav_link_to "Request alias/implication", new_bulk_update_request_path %>
<% end %>
<%= subnav_link_to "Search", search_forum_posts_path %>
<%= subnav_link_to "Help", wiki_page_path("help:forum") %>
<% if CurrentUser.is_member? && @forum_topic && !@forum_topic.new_record? %>

View File

@@ -9,7 +9,7 @@
<p>
Categories:
<%= link_to "All", forum_topics_path %>,
<%= link_to "All", forum_topics_path %>,
<%= link_to "New", forum_topics_path(search: { is_read: false }) %>,
<% if policy(ForumTopic).moderate? %>
<%= link_to "Private", forum_topics_path(search: { is_private: true }) %>,

View File

@@ -51,12 +51,12 @@
<header id="top">
<%= link_to Danbooru.config.app_name, root_path, id: "app-name-header", class: "heading" %>
<div id="maintoggle" class="mobile-only">
<a href="#"><i id="maintoggle-on" class="fas fa-bars"></i></a>
<a href="#"><i id="maintoggle-off" class="fas fa-times" style="display: none;"></i></a>
</div>
<nav id="nav">
<%= render "layouts/main_links" %>
<% if content_for(:secondary_links).present? %>

View File

@@ -1,5 +1,5 @@
<p>
As a general rule, you should only approve of posts that you personally like. Posts that are not approved in three days will be automatically deleted.
As a general rule, you should only approve of posts that you personally like. Posts that are not approved in three days will be automatically deleted.
</p>
<p>The <%= link_to_wikis(*Danbooru.config.modqueue_warning_tags) %> tags are highlighted in red.</p>

View File

@@ -1,6 +1,6 @@
<% if (CurrentUser.can_approve_posts? || post.created_at < Danbooru.config.moderation_period.ago) && disapprovals.length > 0 %>
<p>
It has been reviewed by <%= pluralize disapprovals.length, "approver" %>.
It has been reviewed by <%= pluralize disapprovals.length, "approver" %>.
<% if disapprovals.map(&:reason).grep("breaks_rules").count > 0 %>
<%= disapprovals.map(&:reason).grep("breaks_rules").count %> believe it breaks the rules.

View File

@@ -1,7 +1,7 @@
<section id="related-box">
<h2>Related</h2>
<ul id="related-list">
<% if discover_mode? %>
<% if discover_mode? %>
<li id="secondary-links-posts-hot"><%= link_to "Hot", posts_path(:tags => "order:rank") %></li>
<li id="secondary-links-posts-popular"><%= link_to "Popular", popular_explore_posts_path %></li>
<li id="secondary-links-posts-curated"><%= link_to "Curated", curated_explore_posts_path %></li>

View File

@@ -59,7 +59,7 @@
<%= render "related_tags/buttons" %>
</div>
<div class="input">
<%= f.submit "Submit" %>
</div>

View File

@@ -109,7 +109,7 @@
<td>
<%= link_to user.post_votes.count, post_votes_path(search: { user_name: user.name }) %> posts,
<%= link_to user.comment_votes.count, comment_votes_path(search: { user_name: user.name }) %> comments,
<%= link_to user.forum_post_votes.count, forum_post_votes_path(search: { creator_name: user.name }) %> forum posts
<%= link_to user.forum_post_votes.count, forum_post_votes_path(search: { creator_name: user.name }) %> forum posts
</td>
</tr>
<% end %>
@@ -123,7 +123,7 @@
<th>Post Changes</th>
<td>
<%= presenter.post_version_count(self) %>
<% if CurrentUser.id == user.id %>
<% if CurrentUser.id == user.id %>
(<%= link_to "refresh", new_maintenance_user_count_fixes_path %>)
<% end %>
</td>
@@ -190,7 +190,7 @@
<th>Feedback</th>
<td><%= presenter.feedbacks(self) %></td>
</tr>
<% if policy(UserNameChangeRequest.new(user: user)).show? %>
<% user.user_name_change_requests.visible(CurrentUser.user).tap do |changes| %>
<% if changes.present? %>

View File

@@ -7,8 +7,8 @@
<%= edit_form_for @user do |f| %>
<h2 id="edit-options">
<%= link_to "Basic", "#basic-settings", :class => "active" %>
| <%= link_to "Advanced", "#advanced-settings" %>
<%= link_to "Basic", "#basic-settings", :class => "active" %>
| <%= link_to "Advanced", "#advanced-settings" %>
</h2>
<fieldset id="basic-settings-section">
@@ -40,7 +40,7 @@
<%= f.input :theme, collection: User.themes.keys, include_blank: false, hint: "The site's colorscheme (light mode or dark mode)." %>
<%= f.input :enable_safe_mode, label: "Safe mode", hint: "Show only safe images. Hide questionable and explicit images.", as: :select, include_blank: false, collection: [["Yes", "true"], ["No", "false"]] %>
<%= f.input :per_page, label: "Posts per page", as: :select, hint: "Number of thumbnails per page", collection: (1..PostSets::Post::MAX_PER_PAGE), include_blank: false %>
<%= f.input :default_image_size, hint: "Show full original images or resized #{Danbooru.config.large_image_width}px width samples.", label: "Default image width", collection: [["850px", "large"], ["original", "original"]], include_blank: false %>
<%= f.input :receive_email_notifications, as: :select, include_blank: false, collection: [["Yes", "true"], ["No", "false"]], hint: "Receive an email when you receive a new dmail." %>
@@ -48,7 +48,7 @@
<%= f.input :comment_threshold, hint: "Comments below this score will be hidden by default" %>
<%= f.input :blacklisted_tags, hint: "Posts with these tags will be hidden. Put each tag on a separate line. <a href='/wiki_pages/help:blacklists'>View help.</a>".html_safe, :input_html => {:size => "40x5", :data => {:autocomplete => "tag-query"}} %>
</fieldset>
<fieldset id="advanced-settings-section">
<div class="input">
<label>Account</label>

View File

@@ -62,8 +62,8 @@ WITH constants AS (
-- autovacuum stats
SELECT relname, last_vacuum, last_autovacuum, last_analyze, last_autoanalyze
FROM pg_stat_all_tables
SELECT relname, last_vacuum, last_autovacuum, last_analyze, last_autoanalyze
FROM pg_stat_all_tables
WHERE schemaname = 'public'
and relname = 'posts';
@@ -135,7 +135,7 @@ SELECT
WHEN number_of_columns = 1 THEN 0
ELSE 1
END) AS multi_column
FROM pg_namespace
FROM pg_namespace
LEFT OUTER JOIN pg_class ON pg_namespace.oid = pg_class.relnamespace
LEFT OUTER JOIN
(SELECT indrelid,
@@ -149,7 +149,7 @@ LEFT OUTER JOIN
JOIN pg_class ipg ON ipg.oid = x.indexrelid )
AS foo
ON pg_class.relname = foo.ctablename
WHERE
WHERE
pg_namespace.nspname='public'
AND pg_class.relkind = 'r'
GROUP BY pg_class.relname, pg_class.reltuples, x.is_unique

View File

@@ -33,7 +33,7 @@ CREATE FUNCTION public.favorites_insert_trigger() RETURNS trigger
begin
if (NEW.user_id % 100 = 0) then
insert into favorites_0 values (NEW.*);
elsif (NEW.user_id % 100 = 1) then
insert into favorites_1 values (NEW.*);

View File

@@ -246,9 +246,9 @@ class BulkUpdateRequestTest < ActiveSupport::TestCase
context "a script with extra whitespace" do
should "validate" do
@script = %{
create alias aaa -> 000
create alias aaa -> 000
create alias bbb -> 111
create alias bbb -> 111
}
@bur = create(:bulk_update_request, script: @script)

View File

@@ -335,17 +335,17 @@ module Sources
[b]blah[/b] [i]blah[/i] [u]blah[/u] [s]blah[/s]
herp derp
[quote]this is a quote[/quote]
* one
* two
* three
* one
* two
* three
"Heart":[https://e.deviantart.net/emoticons/h/heart.gif]
EOS