1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00

Work around spaces being added when copying to clipboard.

Since the license text is wrapped in `<pre>` with `white-space: pre-wrap` empty lines make the #license-text bigger than it actually is.

So, get rid of the empty newline at the end of the license text files since jekyll adds trailing spaces when it parses those.
This commit is contained in:
XhmikosR 2013-12-13 12:51:28 +02:00
parent 13edd7e291
commit 366cbaf21a
16 changed files with 17 additions and 21 deletions

View File

@ -2,11 +2,7 @@
<div class="clearfix">
<div class="license-body">
<pre id="license-text">
{{ content | replace:"<","[" | replace:">","]" }}
</pre> <!-- /license-text -->
<pre id="license-text">{{ content | replace:"<", "[" | replace:">", "]" }}</pre>
</div> <!-- /license-body -->
{% include sidebar.html %}

View File

@ -7,7 +7,7 @@ source: http://opensource.org/licenses/MIT
featured: true
description: A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty.
description: A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty.
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.