[gnome-builder] plugins/snippets: remove some trailing newlines



commit b52b3d94c49f39b274e1dc4502f3fca50bb751be
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 22 17:56:13 2022 -0700

    plugins/snippets: remove some trailing newlines
    
    We don't want the newlines here, as they mess up expectations in use.

 src/plugins/snippets/snippets/gobject.snippets | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/snippets/snippets/gobject.snippets b/src/plugins/snippets/snippets/gobject.snippets
index aa159454c..c33c6b688 100644
--- a/src/plugins/snippets/snippets/gobject.snippets
+++ b/src/plugins/snippets/snippets/gobject.snippets
@@ -760,8 +760,7 @@ ${$filename|stripsuffix|functify|space} ${$1|space}  gpointer      user_data)
 ]]></text>
   </snippet>
   <snippet _name="Private" trigger="Private" _description="Define a local for the GObject&apos;s private 
data.">
-    <text languages="c;chdr;"><![CDATA[${$filename|stripsuffix|functify|camelize}Private *priv = 
${$filename|stripsuffix|functify}_get_instance_private (self);$0
-]]></text>
+    <text languages="c;chdr;"><![CDATA[${$filename|stripsuffix|functify|camelize}Private *priv = 
${$filename|stripsuffix|functify}_get_instance_private (self);$0]]></text>
   </snippet>
   <snippet _name="doc" trigger="doc" _description="">
     <text languages="c;chdr;"><![CDATA[/**
@@ -774,12 +773,10 @@ ${$filename|stripsuffix|functify|space} ${$1|space}  gpointer      user_data)
 ]]></text>
   </snippet>
   <snippet _name="fail" trigger="fail" _description="Snippet for g_return_if_fail()">
-    <text languages="c;chdr;"><![CDATA[g_return_if_fail 
(${1:`$filename|stripsuffix|functify|namespace|upper`_IS_`$filename|stripsuffix|class|functify|upper` 
(self)});$0
-]]></text>
+    <text languages="c;chdr;"><![CDATA[g_return_if_fail 
(${1:`$filename|stripsuffix|functify|namespace|upper`_IS_`$filename|stripsuffix|class|functify|upper` 
(self)});$0]]></text>
   </snippet>
   <snippet _name="vfail" trigger="vfail" _description="Snippet for g_return_val_if_fail()">
-    <text languages="c;chdr;"><![CDATA[g_return_val_if_fail 
(${1:`$filename|stripsuffix|functify|namespace|upper`_IS_`$filename|stripsuffix|class|functify|upper` 
(self)}, ${2:NULL});$0
-]]></text>
+    <text languages="c;chdr;"><![CDATA[g_return_val_if_fail 
(${1:`$filename|stripsuffix|functify|namespace|upper`_IS_`$filename|stripsuffix|class|functify|upper` 
(self)}, ${2:NULL});$0]]></text>
   </snippet>
   <snippet _name="gobj_get_property" trigger="gobj_get_property" _description="Create a get_property 
handler">
     <text languages="c;"><![CDATA[static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]