diff --git a/crates/nu-cli/src/util.rs b/crates/nu-cli/src/util.rs index dd9fd32a5d..39ff70c14b 100644 --- a/crates/nu-cli/src/util.rs +++ b/crates/nu-cli/src/util.rs @@ -250,7 +250,7 @@ pub fn eval_source( } } } else { - result = pipeline_data.print(engine_state, stack, false, false); + result = pipeline_data.print(engine_state, stack, true, false); } match result { diff --git a/crates/nu-command/src/viewers/table.rs b/crates/nu-command/src/viewers/table.rs index d66589b4b5..ad60e38be7 100644 --- a/crates/nu-command/src/viewers/table.rs +++ b/crates/nu-command/src/viewers/table.rs @@ -1616,7 +1616,11 @@ impl Iterator for PagingTableCreator { self.row_offset += idx; match table { - Ok(Some(table)) => Some(Ok(table.as_bytes().to_vec())), + Ok(Some(table)) => { + let mut bytes = table.as_bytes().to_vec(); + bytes.push(b'\n'); // tabled tables don't come with a newline on the end + Some(Ok(bytes)) + } Err(err) => Some(Err(err)), _ => None, }