Merge branch 'jc/advice-sans-trailing-whitespace'
The "hint:" messages given by the advice mechanism, when given a message with a blank line, left a line with trailing whitespace, which has been cleansed. * jc/advice-sans-trailing-whitespace: advice: omit trailing whitespace
This commit is contained in:
3
advice.c
3
advice.c
@ -105,8 +105,9 @@ static void vadvise(const char *advice, int display_instructions,
|
||||
|
||||
for (cp = buf.buf; *cp; cp = np) {
|
||||
np = strchrnul(cp, '\n');
|
||||
fprintf(stderr, _("%shint: %.*s%s\n"),
|
||||
fprintf(stderr, _("%shint:%s%.*s%s\n"),
|
||||
advise_get_color(ADVICE_COLOR_HINT),
|
||||
(np == cp) ? "" : " ",
|
||||
(int)(np - cp), cp,
|
||||
advise_get_color(ADVICE_COLOR_RESET));
|
||||
if (*np)
|
||||
|
Reference in New Issue
Block a user