From ba48c3d877953c80abb95077bf3f326ca24a08f3 Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Wed, 25 Dec 2019 10:58:01 -0800 Subject: [PATCH] rm unneeded trailing whitespace from various files --- _includes/footer.html | 2 +- _includes/sidebar.html | 2 +- _layouts/license.html | 12 +++++------ _licenses/cecill-2.1.txt | 6 +++--- _licenses/epl-2.0.txt | 4 ++-- _licenses/ncsa.txt | 42 ++++++++++++++++++------------------- _licenses/postgresql.txt | 2 +- assets/css/application.scss | 8 +++---- assets/js/app.coffee | 26 +++++++++++------------ 9 files changed, 52 insertions(+), 52 deletions(-) diff --git a/_includes/footer.html b/_includes/footer.html index 6a16215..4b453a7 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -23,7 +23,7 @@ window.annotations = {{ site.data.rules | jsonify }}; {% if page.collection == "licenses" %} window.licenses = [ - {% for license in site.licenses %} + {% for license in site.licenses %} { "title": "{{ license.title | escape }}", "spdx_id": "{{ license.spdx-id | escape }}" diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 72e56af..83a4abd 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -2,7 +2,7 @@ Copy license text to clipboard

Suggest this license

-
+

Make a pull request to suggest this license for a project that is not licensed. Please be polite: see if a license has already been suggested, try to suggest a license fitting for the project's community, and keep your communication with project maintainers friendly.

diff --git a/_layouts/license.html b/_layouts/license.html index 297e827..ac63b38 100644 --- a/_layouts/license.html +++ b/_layouts/license.html @@ -1,9 +1,9 @@ {% include header.html %}
- +
- + {% if page.nickname %}

{{ page.nickname }} @@ -13,9 +13,9 @@

{{ page.description }}

- +
- + {% assign types = "permissions|conditions|limitations" | split: "|" %} @@ -42,11 +42,11 @@ {% endfor %}
- +
{{ content | replace:"<", "<" | replace:">", ">" }}
- +
{% include sidebar.html %} diff --git a/_licenses/cecill-2.1.txt b/_licenses/cecill-2.1.txt index 3f9f308..d1758d4 100644 --- a/_licenses/cecill-2.1.txt +++ b/_licenses/cecill-2.1.txt @@ -4,7 +4,7 @@ spdx-id: CECILL-2.1 description: Strong copyleft license made by three French public research organisations, CEA, CNRS, and Inria, compatible with AGPL-3.0, EUPL-1.1, and GPL-2.0, or later versions of those licenses. -how: Create a text file (typically named LICENSE or LICENCE) in the root of your source code and copy the text of the license into the file. +how: Create a text file (typically named LICENSE or LICENCE) in the root of your source code and copy the text of the license into the file. using: - BMC-Tools: https://github.com/ANSSI-FR/bmc-tools/blob/master/LICENCE.txt @@ -22,7 +22,7 @@ conditions: - include-copyright - disclose-source - same-license - + limitations: - liability - warranty @@ -102,7 +102,7 @@ titulaire des droits patrimoniaux décide de soumettre l'exploitation aux dispositions qu'il contient. Une liste de questions fréquemment posées se trouve sur le site web -officiel de la famille des licences CeCILL +officiel de la famille des licences CeCILL (http://www.cecill.info/index.fr.html) pour toute clarification qui serait nécessaire. diff --git a/_licenses/epl-2.0.txt b/_licenses/epl-2.0.txt index e357612..aacc042 100644 --- a/_licenses/epl-2.0.txt +++ b/_licenses/epl-2.0.txt @@ -294,8 +294,8 @@ No third-party beneficiary rights are created under this Agreement. Exhibit A - Form of Secondary Licenses Notice -"This Source Code may also be made available under the following -Secondary Licenses when the conditions for such availability set forth +"This Source Code may also be made available under the following +Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: {name license(s), version(s), and exceptions or additional permissions here}." diff --git a/_licenses/ncsa.txt b/_licenses/ncsa.txt index 9f1dab9..2454bd8 100644 --- a/_licenses/ncsa.txt +++ b/_licenses/ncsa.txt @@ -7,7 +7,7 @@ description: The University of Illinois/NCSA Open Source License, or UIUC licens how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. Replace [project] with the project organization, if any, that sponsors this work. -using: +using: - LLDB: https://github.com/llvm-mirror/lldb/blob/master/LICENSE.TXT - ROCR-Runtime: https://github.com/RadeonOpenCompute/ROCR-Runtime/blob/master/LICENSE.txt - RLTK: https://github.com/chriswailes/RLTK/blob/master/LICENSE @@ -27,37 +27,37 @@ limitations: --- -University of Illinois/NCSA Open Source License +University of Illinois/NCSA Open Source License -Copyright (c) [year] [fullname]. All rights reserved. +Copyright (c) [year] [fullname]. All rights reserved. -Developed by: [project] - [fullname] +Developed by: [project] + [fullname] [projecturl] - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation files -(the "Software"), to deal with the Software without restriction, + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation files +(the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of the Software, -and to permit persons to whom the Software is furnished to do so, +publish, distribute, sublicense, and/or sell copies of the Software, +and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -* Redistributions of source code must retain the above copyright notice, +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers. -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimers in the +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimers in the documentation and/or other materials provided with the distribution. -* Neither the names of [fullname], [project] nor the names of its +* Neither the names of [fullname], [project] nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. diff --git a/_licenses/postgresql.txt b/_licenses/postgresql.txt index 9b74302..03f244a 100644 --- a/_licenses/postgresql.txt +++ b/_licenses/postgresql.txt @@ -2,7 +2,7 @@ title: PostgreSQL License spdx-id: PostgreSQL -description: A very short, BSD-style license, used specifically for PostgreSQL. +description: A very short, BSD-style license, used specifically for PostgreSQL. how: To use it, say that it is The PostgreSQL License, and then substitute the copyright year and name of the copyright holder into the body of the license. Then put the license into a prominent file ("COPYRIGHT", "LICENSE" or "COPYING" are common names for this file) in your software distribution. diff --git a/assets/css/application.scss b/assets/css/application.scss index 4c14552..779b75c 100644 --- a/assets/css/application.scss +++ b/assets/css/application.scss @@ -315,16 +315,16 @@ strong { border-radius: 50%; background: #fff; animation: none; - border: 4px solid #ddd; + border: 4px solid #ddd; } -.input-wrapper .status-indicator.fetching { +.input-wrapper .status-indicator.fetching { border-right-color: transparent; animation: rotate 0.8s infinite linear; } -.input-wrapper .status-indicator.error { - border: 4px solid #c6403d; +.input-wrapper .status-indicator.error { + border: 4px solid #c6403d; } @keyframes rotate { diff --git a/assets/js/app.coffee b/assets/js/app.coffee index d9b0778..72cfcd5 100644 --- a/assets/js/app.coffee +++ b/assets/js/app.coffee @@ -71,7 +71,7 @@ class Choosealicense # Post-copy user feedback callback clipboardComplete: (client, args) -> @textContent = "Copied!" - + # Initializes the repository suggestion feature initLicenseSuggestion: -> inputEl = $("#repository-url") @@ -83,7 +83,7 @@ class LicenseSuggestion constructor: (@inputEl, @licenseId, @statusIndicator) -> @setupTooltips() @bindEventHandlers() - + # Initializes tooltips on the input element setupTooltips: => @inputEl.qtip @@ -98,12 +98,12 @@ class LicenseSuggestion at: "bottom center" style: classes: "qtip-shadow" - + # Main event handlers for user input - bindEventHandlers: => + bindEventHandlers: => @inputEl.on "input", (event) => @setStatus "" - .on "keyup", (event) => + .on "keyup", (event) => if event.keyCode == 13 and event.target.value # Validate the user input first try @@ -111,8 +111,8 @@ class LicenseSuggestion catch @setStatus "Error", "Invalid URL." return - - @setStatus "Fetching" + + @setStatus "Fetching" @fetchInfoFromGithubAPI repositoryFullName, (err, repositoryInfo=null) => if (err) @setStatus "Error", err.message @@ -137,7 +137,7 @@ class LicenseSuggestion .slice 0, 1 .join "" return username + '/' + project - + # Displays an indicator and tooltips to the user about the current status setStatus: (status="", message="") => statusClass = status.toLowerCase() @@ -157,25 +157,25 @@ class LicenseSuggestion else @inputEl.qtip("api").hide() @statusIndicator.removeClass('fetching error') - + # Fetches information about a repository from the Github API fetchInfoFromGithubAPI: (repositoryFullName, callback) -> $.getJSON "https://api.github.com/repos/"+repositoryFullName, (info) -> callback null, info - .fail (e) -> + .fail (e) -> if e.status == 404 callback new Error "Repository #{repositoryFullName} not found." else callback new Error "Network error when trying to get information about #{repositoryFullName}." - + # Generates a message showing that a repository is already licensed repositoryLicense: (repositoryFullName, license) -> foundLicense = window.licenses.find (lic) -> lic.spdx_id == license.spdx_id if foundLicense # Links the license to its page on this site - "The repository #{repositoryFullName} is already licensed under the + "The repository #{repositoryFullName} is already licensed under the #{foundLicense.title}." else "The repository #{repositoryFullName} is already licensed." - + $ -> new Choosealicense()