Skip to content

Commit

Permalink
add support Chinese error, like 错误, 附注, 警告
Browse files Browse the repository at this point in the history
  • Loading branch information
chinaran committed Apr 2, 2015
1 parent 1a6f1f4 commit e2e6deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions out_color_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ static void color_print_line(const char *line, const char *color, int b_cn)
{
msg = strstr(col + 1, ":");
snprintf(buf, msg - col, "%s", col + 1);
printf("%s%s%s:", color, buf, COLOR_END);
printf("%s%s%s", color, buf, COLOR_END);

printf("%s%s%s%s", color, BOLD, msg + 2, COLOR_END);
printf("%s%s%s%s", color, BOLD, msg + strlen(":"), COLOR_END);
}
}

Expand Down

0 comments on commit e2e6deb

Please sign in to comment.