Remove trailing spaces from snippets.

parent e96f8d69
......@@ -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>
......
......@@ -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);
};
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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;
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment