Skip to content

Commit 7196389

Browse files
committed
Fix hide option for non-empty columns
1 parent 7f4f8af commit 7196389

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,11 @@ fn main() {
476476

477477
// Now write out the other column values
478478
for i in 0..table.columns.len() {
479-
if table.columns[i].hide || table.columns[i].subtable.is_some() { continue; }
479+
if table.columns[i].subtable.is_some() { continue; }
480+
if table.columns[i].hide {
481+
table.columns[i].value.borrow_mut().clear();
482+
continue;
483+
}
480484
if i > 0 { table.write("\t"); }
481485
if table.columns[i].value.borrow().is_empty() { table.write("\\N"); }
482486
else {

0 commit comments

Comments
 (0)