Earlier tabs caused random ragged right indentation, because the tab length was assumed to be 1 char which is not the case most of the time. Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- term-utils/wall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/term-utils/wall.c b/term-utils/wall.c index 451b5d3..fbea7e4 100644 --- a/term-utils/wall.c +++ b/term-utils/wall.c @@ -281,6 +281,8 @@ static char *makemsg(char *fname, char **mvec, int mvecsz, putc('\n', fp); cnt = 0; } + if (ch == '\t') + cnt += (7 - (cnt % 8)); if (ch != '\n') carefulputc(ch, fp, '^'); } -- 1.8.4 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html