SF.net SVN: geany:[5272] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sat Oct 2 14:36:12 UTC 2010


Revision: 5272
          http://geany.svn.sourceforge.net/geany/?rev=5272&view=rev
Author:   eht16
Date:     2010-10-02 14:36:12 +0000 (Sat, 02 Oct 2010)

Log Message:
-----------
Strip the output of {command: } templates (closes #3079063).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/templates.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-10-01 15:08:43 UTC (rev 5271)
+++ trunk/ChangeLog	2010-10-02 14:36:12 UTC (rev 5272)
@@ -1,3 +1,9 @@
+2010-10-02  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/templates.c:
+   Strip the output of {command: } templates (closes #3079063).
+
+
 2010-10-01  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
 
  * src/tools.c, doc/geany.txt, doc/geany.html:

Modified: trunk/src/templates.c
===================================================================
--- trunk/src/templates.c	2010-10-01 15:08:43 UTC (rev 5271)
+++ trunk/src/templates.c	2010-10-02 14:36:12 UTC (rev 5272)
@@ -787,6 +787,7 @@
 		result = run_command(cmd, file_name, file_type, func_name);
 		if (result != NULL)
 		{
+			result = g_strstrip(result);
 			utils_string_replace_first(text, wildcard, result);
 			g_free(result);
 		}


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