Skip to content

Commit d473e2f

Browse files
committed
make 0 autosize column width as documented
1 parent 1ac1594 commit d473e2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backends/text/text_backend.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function _text__print_table(
166166
mc = 1
167167

168168
for j in eachindex(fixed_data_column_widths)
169-
aux += fixed_data_column_widths[j] < 0 ? 5 : fixed_data_column_widths[j]
169+
aux += fixed_data_column_widths[j] <= 0 ? 5 : fixed_data_column_widths[j]
170170
aux > display.size[2] && break
171171
mc += 1
172172
end

test/backends/text/line_breaks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ end
153153
table;
154154
auto_wrap = true,
155155
column_labels = column_labels,
156-
fixed_data_column_widths = [-1, 30],
156+
fixed_data_column_widths = [0, 30],
157157
line_breaks = true,
158158
table_format = TextTableFormat(; @text__all_horizontal_lines)
159159
)

0 commit comments

Comments
 (0)