mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +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:
parent
13edd7e291
commit
366cbaf21a
@ -2,11 +2,7 @@
|
|||||||
|
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<div class="license-body">
|
<div class="license-body">
|
||||||
<pre id="license-text">
|
<pre id="license-text">{{ content | replace:"<", "[" | replace:">", "]" }}</pre>
|
||||||
|
|
||||||
{{ content | replace:"<","[" | replace:">","]" }}
|
|
||||||
|
|
||||||
</pre> <!-- /license-text -->
|
|
||||||
</div> <!-- /license-body -->
|
</div> <!-- /license-body -->
|
||||||
|
|
||||||
{% include sidebar.html %}
|
{% include sidebar.html %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user