[gnome-builder] meson-templates: Fix trailing spaces
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] meson-templates: Fix trailing spaces
- Date: Sat, 5 Dec 2020 03:22:39 +0000 (UTC)
commit 3b0b7b544e9b1af0bfca29bcf4f30d31fcbb3424
Author: Phaedrus Leeds <mwleeds endlessos org>
Date: Fri Dec 4 14:28:19 2020 -0800
meson-templates: Fix trailing spaces
Avoid adding one or two trailing spaces, depending on if the language is
one of the supported ones for the argument to project(). Also ensure the
file ends with a newline character.
src/plugins/meson-templates/resources/meson.build | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/meson-templates/resources/meson.build
b/src/plugins/meson-templates/resources/meson.build
index 67f028012..c579f619c 100644
--- a/src/plugins/meson-templates/resources/meson.build
+++ b/src/plugins/meson-templates/resources/meson.build
@@ -1,4 +1,4 @@
-project('{{name}}', {{if language == "c"}}'c',{{else if language == "c++"}}['cpp', 'c'],{{else if language
== "vala"}}['c', 'vala'],{{else if language == "c♯"}}'cs',{{end}}
+project('{{name}}',{{if language == "c"}} 'c',{{else if language == "c++"}} ['cpp', 'c'],{{else if language
== "vala"}} ['c', 'vala'],{{else if language == "c♯"}} 'cs',{{end}}
version: '{{project_version}}',
meson_version: '>= 0.50.0',
default_options: [ 'warning_level=2',
@@ -47,4 +47,5 @@ subdir('po')
{{end}}
{{if enable_gnome}}
-meson.add_install_script('build-aux/meson/postinstall.py'){{end}}
+meson.add_install_script('build-aux/meson/postinstall.py')
+{{end}}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]