fix(formatting): prevent crashes on files with multibyte characters (#51)

* Fix crash when truncating to middle of a character

* Fix alignment of file names with wide characters

* Respect use ::formatting convention
This commit is contained in:
Renée Kooi
2020-06-26 14:03:04 +02:00
committed by GitHub
parent 4d3ac2b45c
commit 120058d817
4 changed files with 43 additions and 7 deletions

View File

@@ -17,6 +17,7 @@ jwalk = "0.5"
signal-hook = "0.1.10"
structopt = "0.3"
filesize = "0.2.0"
unicode-width = "0.1.7"
[dev-dependencies]
insta = "0.16.0"