[gedit] Remove trailing spaces from snippets.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Remove trailing spaces from snippets.
- Date: Wed, 27 Apr 2011 13:08:16 +0000 (UTC)
commit b67acf40df1f4d7b4fc96b59c49b5533a8e620f1
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Apr 27 15:08:50 2011 +0200
Remove trailing spaces from snippets.
plugins/snippets/data/c.xml | 30 +++++++++++++++---------------
plugins/snippets/data/chdr.xml | 12 ++++++------
plugins/snippets/data/cpp.xml | 12 ++++++------
plugins/snippets/data/fortran.xml | 16 ++++++++--------
plugins/snippets/data/java.xml | 8 ++++----
plugins/snippets/data/mallard.xml | 4 ++--
plugins/snippets/data/php.xml | 8 ++++----
plugins/snippets/data/ruby.xml | 4 ++--
8 files changed, 47 insertions(+), 47 deletions(-)
---
diff --git a/plugins/snippets/data/c.xml b/plugins/snippets/data/c.xml
index 61171cb..d08f9bf 100644
--- a/plugins/snippets/data/c.xml
+++ b/plugins/snippets/data/c.xml
@@ -24,7 +24,7 @@ except KeyError:
*
* You should have received a copy of the GNU General Public License
* along with ${2}; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
@@ -35,7 +35,7 @@ $0]]></text>
<snippet id="lgpl">
<text><![CDATA[/*
* ${1:[$GEDIT_CURRENT_DOCUMENT_NAME,<filename>]}
- * This file is part of ${2:<library name>}
+ * This file is part of ${2:<library name>}
*
* Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4:
import pwd, os
@@ -48,12 +48,12 @@ except KeyError:
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* ${2} is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
@@ -124,7 +124,7 @@ $0]]></text>
<description>#include ".."</description>
</snippet>
<snippet id="main">
- <text><![CDATA[int
+ <text><![CDATA[int
main (int argc, char *argv[])
{
$0
@@ -186,7 +186,7 @@ static void
$<[1]: return low_str >_class_init ($<[1]: return camel_str >Class *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
+
object_class->finalize = $<[1]: return low_str >_finalize;
g_type_class_add_private (object_class, sizeof ($<[1]: return camel_str >Private));
@@ -225,13 +225,13 @@ $<[1]: return low_str>_example_method_default ($<[1]: return camel_str > *self)
g_return_val_if_reached (NULL);
}
-static void
+static void
$<[1]: return low_str>_init ($<[1]: return camel_str >Iface *iface)
{
static gboolean initialized = FALSE;
-
+
iface->example_method = $<[1]: return low_str>_example_method_default;
-
+
if (!initialized)
{
initialized = TRUE;
@@ -248,17 +248,17 @@ $<[1]: return low_str>_example_method ($<[1]: return camel_str > *self)
return $<[1]: return up_str>_GET_INTERFACE (self)->example_method (self);
}
-GType
+GType
$<[1]: return low_str>_get_type ()
{
static GType $<[1]: return low_str>_type_id = 0;
-
+
if (!$<[1]: return low_str>_type_id)
{
static const GTypeInfo g_define_type_info =
{
sizeof ($<[1]: return camel_str >Iface),
- (GBaseInitFunc) $<[1]: return low_str>_init,
+ (GBaseInitFunc) $<[1]: return low_str>_init,
NULL,
NULL,
NULL,
@@ -267,14 +267,14 @@ $<[1]: return low_str>_get_type ()
0,
NULL
};
-
- $<[1]: return low_str>_type_id =
+
+ $<[1]: return low_str>_type_id =
g_type_register_static (G_TYPE_INTERFACE,
"$<[1]: return camel_str>",
&g_define_type_info,
0);
}
-
+
return $<[1]: return low_str>_type_id;
}]]></text>
<tag>ginterface</tag>
diff --git a/plugins/snippets/data/chdr.xml b/plugins/snippets/data/chdr.xml
index f71ea90..c6145d5 100644
--- a/plugins/snippets/data/chdr.xml
+++ b/plugins/snippets/data/chdr.xml
@@ -56,7 +56,7 @@ except KeyError:
*
* You should have received a copy of the GNU General Public License
* along with ${2}; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
@@ -67,7 +67,7 @@ $0]]></text>
<snippet id="lgpl">
<text><![CDATA[/*
* ${1:[$GEDIT_CURRENT_DOCUMENT_NAME,<filename>]}
- * This file is part of ${2:<library name>}
+ * This file is part of ${2:<library name>}
*
* Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4:
import pwd, os
@@ -80,12 +80,12 @@ except KeyError:
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* ${2} is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
@@ -168,7 +168,7 @@ return align(items) >
struct _$<[1]: return camel_str > {
${7:GObject} parent;
-
+
$<[1]: return camel_str >Private *priv;
};
@@ -224,7 +224,7 @@ return align(items) >
struct _$<[1]: return camel_str >Iface
{
${7:GTypeInterface} parent;
-
+
const gchar * (*example_method) ($<[1]: return camel_str > *self);
};
diff --git a/plugins/snippets/data/cpp.xml b/plugins/snippets/data/cpp.xml
index 7c7ccab..22eea9a 100644
--- a/plugins/snippets/data/cpp.xml
+++ b/plugins/snippets/data/cpp.xml
@@ -127,10 +127,10 @@ except KeyError:
*
* You should have received a copy of the GNU General Public License
* along with ${2}; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
-
+
$0]]></text>
<tag>gpl</tag>
<description>GPL License</description>
@@ -138,7 +138,7 @@ except KeyError:
<snippet id="lgpl">
<text><![CDATA[/*
* ${1:[$GEDIT_CURRENT_DOCUMENT_NAME,<filename>]}
- * This file is part of ${2:<library name>}
+ * This file is part of ${2:<library name>}
*
* Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4:
import pwd, os
@@ -151,17 +151,17 @@ except KeyError:
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* ${2} is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-
+
$0]]></text>
<tag>lgpl</tag>
<description>LGPL License</description>
diff --git a/plugins/snippets/data/fortran.xml b/plugins/snippets/data/fortran.xml
index c64d646..205abe6 100644
--- a/plugins/snippets/data/fortran.xml
+++ b/plugins/snippets/data/fortran.xml
@@ -21,9 +21,9 @@ end do]]></text>
<text><![CDATA[function ${1:name}( ${2:parameter} )
${3:integer/real ::} $1
${4:integer/real ::} $2
-
+
${0:source}
-
+
$1 = !result
end function]]></text>
<tag>func</tag>
@@ -69,9 +69,9 @@ end if]]></text>
<text><![CDATA[module ${1:name}
implicit none
${2:integer/real ::} $3
-
+
${4:contains}
-
+
${0:source}
end module]]></text>
<tag>mod</tag>
@@ -85,7 +85,7 @@ end module]]></text>
<snippet id="prog">
<text><![CDATA[program ${1:name}
implicit none
-
+
${0:source}
end program]]></text>
<tag>prog</tag>
@@ -115,9 +115,9 @@ end program]]></text>
<text><![CDATA[recursive function ${1:name}( ${2:parameter} ) result( ${3:res} )
${4:integer/real ::} $3
${5:integer/real ::} $2
-
+
${0:source}
-
+
$3 = !result
end function]]></text>
<tag>rec</tag>
@@ -136,7 +136,7 @@ end select]]></text>
<snippet id="sub">
<text><![CDATA[subroutine ${1:name}( ${2:parameter} )
${3:integer/real ::} $2
-
+
${0:source}
end subroutine]]></text>
<tag>sub</tag>
diff --git a/plugins/snippets/data/java.xml b/plugins/snippets/data/java.xml
index 043a5dd..f7f11c0 100644
--- a/plugins/snippets/data/java.xml
+++ b/plugins/snippets/data/java.xml
@@ -12,7 +12,7 @@
} else { // $3
-
+
}
@@ -62,7 +62,7 @@ $0]]></text>
</snippet>
<snippet id="sout">
<text><![CDATA[System.out.println("${1}");
-$0
+$0
]]></text>
<description>System.out.println</description>
<tag>sout</tag>
@@ -70,8 +70,8 @@ $0
<snippet id="try/catch">
<text><![CDATA[try {
$GEDIT_SELECTED_TEXT
-}
-catch (Exception e) {
+}
+catch (Exception e) {
${1:e.printStackTrace();}
}
$0]]></text>
diff --git a/plugins/snippets/data/mallard.xml b/plugins/snippets/data/mallard.xml
index ffa418d..5a06fbe 100644
--- a/plugins/snippets/data/mallard.xml
+++ b/plugins/snippets/data/mallard.xml
@@ -84,7 +84,7 @@
<text><![CDATA[<list>
<title>${2:Title}</title>
<item><p>${3}</p></item>
- <item><p>${4}</p></item>
+ <item><p>${4}</p></item>
</list>]]></text>
<tag>list</tag>
<description>list</description>
@@ -113,7 +113,7 @@ $0
<text><![CDATA[<list type="numbered">
<item><p>$1</p></item>
<item><p>$2</p></item>
- <item><p>$3</p></item>
+ <item><p>$3</p></item>
</list> ]]></text>
<tag>num</tag>
<description>numbered list</description>
diff --git a/plugins/snippets/data/php.xml b/plugins/snippets/data/php.xml
index 7d03f97..8c88ece 100644
--- a/plugins/snippets/data/php.xml
+++ b/plugins/snippets/data/php.xml
@@ -10,14 +10,14 @@
class ${1:ClassName} ${3:extends AnotherClass}
{
# internal variables
-
+
# Constructor
function __construct (${4:argument})
{
# code...
$0
}
- ###
+ ###
}
###]]></text>
@@ -202,9 +202,9 @@ break;]]></text>
case '${2:value}':
${3:# code...}
break;
-
+
$0
-
+
default:
${4:# code...}
break;
diff --git a/plugins/snippets/data/ruby.xml b/plugins/snippets/data/ruby.xml
index e68602f..db13e69 100644
--- a/plugins/snippets/data/ruby.xml
+++ b/plugins/snippets/data/ruby.xml
@@ -130,14 +130,14 @@ end]]></text>
<description>hash pointer</description>
</snippet>
<snippet id="injecto">
- <text><![CDATA[inject(${1:object}) do |${2:injection}, ${3:element}|
+ <text><![CDATA[inject(${1:object}) do |${2:injection}, ${3:element}|
$0
end]]></text>
<description>inject object do</description>
<tag>injecto</tag>
</snippet>
<snippet id="rejecto">
- <text><![CDATA[reject do |${1:element}|
+ <text><![CDATA[reject do |${1:element}|
${1:element}.$0
end]]></text>
<description>reject element do</description>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]