Use the same indentation for all templates (part of FR#3193527)
From a patch by Matthew Brush, thanks. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5590 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
e6a7d02fbe
commit
6236c506f2
@ -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:
|
||||
|
||||
@ -549,7 +549,7 @@ gchar *templates_get_template_licence(GeanyDocument *doc, gint licence_type)
|
||||
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 @@ static gchar *get_template_fileheader(GeanyFiletype *ft)
|
||||
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 @@ gchar *templates_get_template_function(GeanyDocument *doc, const gchar *func_nam
|
||||
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);
|
||||
|
||||
@ -30,6 +30,8 @@
|
||||
#ifndef GEANY_TEMPLATES_H
|
||||
#define GEANY_TEMPLATES_H 1
|
||||
|
||||
#define GEANY_TEMPLATES_INDENT 3
|
||||
|
||||
enum
|
||||
{
|
||||
GEANY_TEMPLATE_GPL = 0,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user