Remove forces spaces from ebracket and ensure ok matches eend output.

This commit is contained in:
Roy Marples
2007-12-24 13:55:40 +00:00
parent 5ee9dfff6d
commit 7de72229a5
2 changed files with 5 additions and 5 deletions

View File

@@ -778,7 +778,7 @@ static void _eend (FILE * restrict fp, int col, einfo_color_t color,
if (! msg)
return;
cols = get_term_columns (fp) - (strlen (msg) + 5);
cols = get_term_columns (fp) - (strlen (msg) + 3);
/* cons25 is special - we need to remove one char, otherwise things
* do not align properly at all. */
@@ -793,14 +793,14 @@ static void _eend (FILE * restrict fp, int col, einfo_color_t 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);
}
}