aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-03-23 12:49:40 +0000
committerMike Frysinger <vapier@gentoo.org>2008-03-23 12:49:40 +0000
commitec4721dd7f91af650b3d385522b3fcd53a55b00e (patch)
tree4925e64c501f0955b48192069a02a239030a9d0c
parente1b09daaac1dd337fe9a2ae58f42d3a593284855 (diff)
fix spacing in the trailing [ msg ]
-rw-r--r--src/libeinfo/libeinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libeinfo/libeinfo.c b/src/libeinfo/libeinfo.c
index 41969964..c46cacbc 100644
--- a/src/libeinfo/libeinfo.c
+++ b/src/libeinfo/libeinfo.c
@@ -787,7 +787,7 @@ static void _eend(FILE * __EINFO_RESTRICT fp, int col, ECOLOR color,
if (! msg)
return;
- cols = get_term_columns(fp) - (strlen(msg) + 3);
+ cols = get_term_columns(fp) - (strlen(msg) + 5);
/* cons25 is special - we need to remove one char, otherwise things
* do not align properly at all. */
@@ -802,14 +802,14 @@ static void _eend(FILE * __EINFO_RESTRICT fp, int col, ECOLOR color,
cols--;
if (cols > 0 && colour_terminal(fp)) {
- fprintf(fp, "%s%s %s[%s%s%s]%s\n", up, tgoto(goto_column, 0, cols),
+ fprintf(fp, "%s%s %s[%s %s %s]%s\n", up, tgoto(goto_column, 0, cols),
ecolor(ECOLOR_BRACKET), ecolor(color), msg,
ecolor(ECOLOR_BRACKET), ecolor(ECOLOR_NORMAL));
} else {
if (col > 0)
for (i = 0; i < cols - col; i++)
fprintf(fp, " ");
- fprintf(fp, " [%s]\n", msg);
+ fprintf(fp, " [ %s ]\n", msg);
}
}