From 4d553587aaf863c0dadbdf6c4667c9cd9937370f Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 20 Apr 2021 19:00:56 +1000 Subject: [PATCH] fixed powershell output --- CHANGELOG.md | 1 + src/formats.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 682cb93..d7a04db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Dates are given in YYYY-MM-DD format. - [`xdg-mime`] no longer uses git version - Output is sorted: Files that couldn't be read, then files with no known mimetype, then files with no known extensions, then files with the wrong extension +- Fixed some bad formatting in PowerShell output ### v0.2.12 (2021-04-14) #### Features diff --git a/src/formats.rs b/src/formats.rs index 9c70d45..9ebab73 100644 --- a/src/formats.rs +++ b/src/formats.rs @@ -226,7 +226,7 @@ impl Format for PowerShell { fn unknown_type(&self, f: &mut W, path: &Path) -> io::Result<()> { smart_write( f, - &["<# Failed to detect mime type for ".into(), path.into(), "#>".into()], + &["<# Failed to detect mime type for ".into(), path.into(), "#>".into(), Writable::Newline], ) }