SF.net SVN: geany:[4088] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Sat Aug 15 17:33:21 UTC 2009
Revision: 4088
http://geany.svn.sourceforge.net/geany/?rev=4088&view=rev
Author: eht16
Date: 2009-08-15 17:33:20 +0000 (Sat, 15 Aug 2009)
Log Message:
-----------
Add missing 'coding' cookie to the Python filetype template.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/templates.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-08-15 17:21:30 UTC (rev 4087)
+++ trunk/ChangeLog 2009-08-15 17:33:20 UTC (rev 4088)
@@ -4,6 +4,8 @@
Temporarily disable reshowing calltips when the autocompletion
list was closed implicitly by not choosing an item to fix
problems with wrongly displayed calltips.
+ * src/template.c:
+ Add missing 'coding' cookie to the Python filetype template.
2009-08-13 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/templates.c
===================================================================
--- trunk/src/templates.c 2009-08-15 17:21:30 UTC (rev 4087)
+++ trunk/src/templates.c 2009-08-15 17:33:20 UTC (rev 4088)
@@ -218,14 +218,16 @@
x = StdClass.new\n\
";
-static const gchar templates_filetype_python[] = "#!/usr/bin/env python\n#\n\
+static const gchar templates_filetype_python[] = "#!/usr/bin/env python\n\
+# -*- coding: utf-8 -*-\n#\n\
{fileheader}\n\n\
\n\
def main():\n\
\n\
return 0\n\
\n\
-if __name__ == '__main__': main()\n\
+if __name__ == '__main__':\n\
+ main()\n\
";
static const gchar templates_filetype_latex[] = "\
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list