diff --git a/usr.bin/indent/pr_comment.c b/usr.bin/indent/pr_comment.c index 4043fee5e83a..64c138ec458e 100644 --- a/usr.bin/indent/pr_comment.c +++ b/usr.bin/indent/pr_comment.c @@ -293,7 +293,7 @@ pr_comment(void) s_com = e_com; *e_com++ = ' '; } - if (e_com[-1] != ' ' && !ps.box_com) + if (e_com[-1] != ' ' && e_com[-1] != '\t' && !ps.box_com) *e_com++ = ' '; /* ensure blank before end */ *e_com++ = '*', *e_com++ = '/', *e_com = '\0'; ps.just_saw_decl = l_just_saw_decl;