Skip to content

Commit de7e565

Browse files
rcalixtejohanmalm
authored andcommitted
main.c: Replace tabs with spaces
Both upstream rc.xml and rc.xml.all files use spaces. This enables consistency between the generated output and the main configuration files.
1 parent d7c8107 commit de7e565

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

main.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ print_app_to_buffer(struct app *app, GString *submenu)
6161
{
6262
/* TODO: handle app->terminal */
6363
g_string_append_printf(submenu,
64-
"\t\t<item label=\"%s\" icon=\"%s\">\n",
64+
" <item label=\"%s\" icon=\"%s\">\n",
6565
app->name_localized ? app->name_localized : app->name, app->icon);
6666
g_string_append_printf(submenu,
67-
"\t\t\t<action name=\"Execute\"><command>%s</command></action>\n",
67+
" <action name=\"Execute\"><command>%s</command></action>\n",
6868
app->exec);
69-
g_string_append_printf(submenu, "\t\t</item>\n");
69+
g_string_append_printf(submenu, " </item>\n");
7070
}
7171

7272
static bool
@@ -169,10 +169,10 @@ print_menu(GList *dirs, GList *apps)
169169
if (!submenu->len) {
170170
continue;
171171
}
172-
printf("\t<menu id=\"%s\" label=\"%s\">\n",
172+
printf(" <menu id=\"%s\" label=\"%s\">\n",
173173
dir->name, dir->name_localized ? : dir->name);
174174
printf("%s", submenu->str);
175-
printf("\t</menu> <!-- %s -->\n", dir->name);
175+
printf(" </menu> <!-- %s -->\n", dir->name);
176176
}
177177

178178
/* Put any left over applications in 'Other' */
@@ -186,10 +186,10 @@ print_menu(GList *dirs, GList *apps)
186186
if (!submenu->len) {
187187
continue;
188188
}
189-
printf("\t<menu id=\"%s\" label=\"%s\">\n",
189+
printf(" <menu id=\"%s\" label=\"%s\">\n",
190190
dir->name, dir->name_localized ? : dir->name);
191191
printf("%s", submenu->str);
192-
printf("\t</menu> <!-- %s -->\n", dir->name);
192+
printf(" </menu> <!-- %s -->\n", dir->name);
193193
}
194194

195195
if (!no_footer) {

0 commit comments

Comments
 (0)