SF.net SVN: geany:[5590] trunk

colombanw at users.sourceforge.net colombanw at xxxxx
Tue Mar 15 16:51:48 UTC 2011


Revision: 5590
          http://geany.svn.sourceforge.net/geany/?rev=5590&view=rev
Author:   colombanw
Date:     2011-03-15 16:51:47 +0000 (Tue, 15 Mar 2011)

Log Message:
-----------
Use the same indentation for all templates (part of FR#3193527)

>From a patch by Matthew Brush, thanks.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2011-03-14 17:37:44 UTC (rev 5589)
+++ trunk/ChangeLog	2011-03-15 16:51:47 UTC (rev 5590)
@@ -1,3 +1,10 @@
+2011-03-15  Colomban Wendling  <colomban(at)geany(dot)org>
+
+ * src/templates.c, src/templates.h:
+   Use the same indentation for all templates (part of FR#3193527; from
+   a patch by Matthew Brush, thanks).
+
+
 2011-03-12  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
 
  * data/filetype_extensions.conf:

Modified: trunk/src/templates.c
===================================================================
--- trunk/src/templates.c	2011-03-14 17:37:44 UTC (rev 5589)
+++ trunk/src/templates.c	2011-03-15 16:51:47 UTC (rev 5590)
@@ -549,7 +549,7 @@
 	templates_replace_default_dates(template);
 	templates_replace_command(template, DOC_FILENAME(doc), doc->file_type->name, NULL);
 
-	make_comment_block(template, doc->file_type->id, 8);
+	make_comment_block(template, doc->file_type->id, GEANY_TEMPLATES_INDENT);
 	convert_eol_characters(template, doc);
 
 	return g_string_free(template, FALSE);
@@ -568,7 +568,7 @@
 		NULL);
 
 	/* we don't replace other wildcards here otherwise they would get done twice for files */
-	make_comment_block(template, ft->id, 8);
+	make_comment_block(template, ft->id, GEANY_TEMPLATES_INDENT);
 	return g_string_free(template, FALSE);
 }
 
@@ -625,7 +625,7 @@
 	templates_replace_default_dates(text);
 	templates_replace_command(text, DOC_FILENAME(doc), doc->file_type->name, func_name);
 
-	make_comment_block(text, doc->file_type->id, 3);
+	make_comment_block(text, doc->file_type->id, GEANY_TEMPLATES_INDENT);
 	convert_eol_characters(text, doc);
 
 	return g_string_free(text, FALSE);

Modified: trunk/src/templates.h
===================================================================
--- trunk/src/templates.h	2011-03-14 17:37:44 UTC (rev 5589)
+++ trunk/src/templates.h	2011-03-15 16:51:47 UTC (rev 5590)
@@ -30,6 +30,8 @@
 #ifndef GEANY_TEMPLATES_H
 #define GEANY_TEMPLATES_H 1
 
+#define GEANY_TEMPLATES_INDENT 3
+
 enum
 {
 	GEANY_TEMPLATE_GPL = 0,


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