Skip to content

Commit 1536dd9

Browse files
committed
column: read lines with strbuf_getline()
Multiple lines read here are concatenated on a single line to form a multi-column output line. We do not want to have a CR at the end, even if the input file consists of CRLF terminated lines. Signed-off-by: Junio C Hamano <[email protected]>
1 parent b42ca3d commit 1536dd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/column.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ int cmd_column(int argc, const char **argv, const char *prefix)
5151
die(_("--command must be the first argument"));
5252
}
5353
finalize_colopts(&colopts, -1);
54-
while (!strbuf_getline_lf(&sb, stdin))
54+
while (!strbuf_getline(&sb, stdin))
5555
string_list_append(&list, sb.buf);
5656

5757
print_columns(&list, colopts, &copts);

0 commit comments

Comments
 (0)