mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-11 07:10:56 +00:00
Merge pull request #17 from nwin/fix-column-alignment
Fix the column alignment
This commit is contained in:
commit
bd8e73b212
@ -86,7 +86,7 @@ impl Cell {
|
||||
pub fn paint(style: Style, string: &str) -> Cell {
|
||||
Cell {
|
||||
text: style.paint(string).to_string(),
|
||||
length: string.len(),
|
||||
length: string.width(false),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -319,7 +319,7 @@ impl<'a> File<'a> {
|
||||
DateFormat::parse("{2>:D} {:M} {2>:h}:{02>:m}").unwrap()
|
||||
}
|
||||
else {
|
||||
DateFormat::parse("{2>:D} {:M} {4>:Y}").unwrap()
|
||||
DateFormat::parse("{2>:D} {:M} {5>:Y}").unwrap()
|
||||
};
|
||||
|
||||
Cell::paint(Blue.normal(), format.format(date, locale).as_slice())
|
||||
|
Loading…
Reference in New Issue
Block a user