diff options
Diffstat (limited to 'src/row.rs')
-rw-r--r-- | src/row.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -101,11 +101,14 @@ impl Row { {
for i in 0..self.get_height() {
try!(format.print_column_separator(out, ColumnPosition::Left));
+ let (lp, rp) = format.get_padding();
for j in 0..col_width.len() {
+ try!(out.write(&vec![' ' as u8; lp]));
match self.get_cell(j) {
Some(ref c) => try!(f(c, out, i, col_width[j])),
None => try!(f(&Cell::default(), out, i, col_width[j]))
};
+ try!(out.write(&vec![' ' as u8; rp]));
if j < col_width.len() - 1 {
try!(format.print_column_separator(out, ColumnPosition::Intern));
}
|