fix(file-templates): indentation for licenses

And remove superfluous tabstops in gpl3 license.
This commit is contained in:
Henrik Lissner 2022-08-04 21:42:59 +02:00
parent 293b3f9be5
commit ba668f7cb0
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
11 changed files with 13 additions and 1 deletions

View file

@ -3,6 +3,7 @@
# uuid: __license-apache # uuid: __license-apache
# group: Licenses # group: Licenses
# contributor: https://choosealicense.com/licenses/apache-2.0/ # contributor: https://choosealicense.com/licenses/apache-2.0/
# expand-env: ((yas-indent-line 'fixed))
# -- # --
Apache License Apache License
Version 2.0, January 2004 Version 2.0, January 2004

View file

@ -3,6 +3,7 @@
# uuid: __license-apache-bp # uuid: __license-apache-bp
# group: Licenses # group: Licenses
# contributor: https://choosealicense.com/licenses/apache-2.0/ # contributor: https://choosealicense.com/licenses/apache-2.0/
# expand-env: ((yas-indent-line 'fixed))
# -- # --
Copyright ${1:`(format-time-string "%Y")` `user-full-name`} Copyright ${1:`(format-time-string "%Y")` `user-full-name`}

View file

@ -2,6 +2,7 @@
# name: 2-clause BSD License # name: 2-clause BSD License
# uuid: __license-bsd2 # uuid: __license-bsd2
# group: Licenses # group: Licenses
# expand-env: ((yas-indent-line 'fixed))
# -- # --
Copyright (c) ${1:`(format-time-string "%Y")`} ${2:`user-full-name`} Copyright (c) ${1:`(format-time-string "%Y")`} ${2:`user-full-name`}
All rights reserved. All rights reserved.

View file

@ -1,6 +1,8 @@
# -*- mode: snippet -*- # -*- mode: snippet -*-
# name: 3-clause BSD License # name: 3-clause BSD License
# uuid: __license-bsd3 # uuid: __license-bsd3
# group: Licenses
# expand-env: ((yas-indent-line 'fixed))
# -- # --
Copyright (c) ${1:`(format-time-string "%Y")`} ${2:`user-full-name`} Copyright (c) ${1:`(format-time-string "%Y")`} ${2:`user-full-name`}
All rights reserved. All rights reserved.

View file

@ -3,6 +3,7 @@
# uuid: __license-gpl3 # uuid: __license-gpl3
# group: Licenses # group: Licenses
# contributor: https://choosealicense.com/licenses/gpl-3.0/ # contributor: https://choosealicense.com/licenses/gpl-3.0/
# expand-env: ((yas-indent-line 'fixed))
# -- # --
GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007 Version 3, 29 June 2007
@ -658,7 +659,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode: notice like this when it starts in an interactive mode:
${3:<program>} Copyright (C) ${1:`(format-time-string "%Y")`} ${2:`user-full-name`} <program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type \`show w'. This program comes with ABSOLUTELY NO WARRANTY; for details type \`show w'.
This is free software, and you are welcome to redistribute it This is free software, and you are welcome to redistribute it
under certain conditions; type \`show c' for details. under certain conditions; type \`show c' for details.

View file

@ -3,6 +3,7 @@
# uuid: __license-gpl3-bp # uuid: __license-gpl3-bp
# group: Licenses # group: Licenses
# contributor: https://choosealicense.com/licenses/lgpl-3.0 # contributor: https://choosealicense.com/licenses/lgpl-3.0
# expand-env: ((yas-indent-line 'fixed))
# -- # --
${1:<program name and description>} ${1:<program name and description>}
Copyright (C) ${2:`(format-time-string "%Y")`} ${3:`user-full-name`} Copyright (C) ${2:`(format-time-string "%Y")`} ${3:`user-full-name`}

View file

@ -3,6 +3,7 @@
# uuid: __license-lgpl3 # uuid: __license-lgpl3
# group: Licenses # group: Licenses
# contribuer: https://choosealicense.com/licenses/lgpl-3.0/ # contribuer: https://choosealicense.com/licenses/lgpl-3.0/
# expand-env: ((yas-indent-line 'fixed))
# -- # --
GNU LESSER GENERAL PUBLIC LICENSE GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007 Version 3, 29 June 2007

View file

@ -3,6 +3,7 @@
# uuid: __license-mit # uuid: __license-mit
# group: Licenses # group: Licenses
# contributor: https://choosealicense.com/licenses/mit/ # contributor: https://choosealicense.com/licenses/mit/
# expand-env: ((yas-indent-line 'fixed))
# -- # --
The MIT License (MIT) The MIT License (MIT)

View file

@ -3,6 +3,7 @@
# uuid: __license-mozilla # uuid: __license-mozilla
# group: Licenses # group: Licenses
# contributor: https://choosealicense.com/licenses/mpl-2.0 # contributor: https://choosealicense.com/licenses/mpl-2.0
# expand-env: ((yas-indent-line 'fixed))
# -- # --
Mozilla Public License Version 2.0 Mozilla Public License Version 2.0
================================== ==================================

View file

@ -3,6 +3,7 @@
# uuid: __license-mozilla-bp # uuid: __license-mozilla-bp
# group: Licenses # group: Licenses
# contributor: https://choosealicense.com/licenses/mpl-2.0 # contributor: https://choosealicense.com/licenses/mpl-2.0
# expand-env: ((yas-indent-line 'fixed))
# -- # --
This Source Code Form is subject to the terms of the Mozilla Public This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this License, v. 2.0. If a copy of the MPL was not distributed with this

View file

@ -3,6 +3,7 @@
# uuid: __license-unlicense # uuid: __license-unlicense
# group: Licenses # group: Licenses
# contributor: https://choosealicense.com/licenses/unlicense # contributor: https://choosealicense.com/licenses/unlicense
# expand-env: ((yas-indent-line 'fixed))
# -- # --
This is free and unencumbered software released into the public domain. This is free and unencumbered software released into the public domain.