From 65212fe72e77462d151fa880690228d370d87485 Mon Sep 17 00:00:00 2001 From: Pierre-Henri Symoneaux Date: Sun, 11 Sep 2016 21:01:14 +0200 Subject: Windows specific newlines is now a default feature The feature is named `win_crlf` Fixes #33 --- src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils.rs') diff --git a/src/utils.rs b/src/utils.rs index 121840e..88f8d8f 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -6,9 +6,9 @@ use unicode_width::UnicodeWidthStr; use super::format::Alignment; -#[cfg(not(windows))] +#[cfg(any(not(windows), not(feature="win_crlf")))] pub static NEWLINE: &'static [u8] = b"\n"; -#[cfg(windows)] +#[cfg(all(windows, feature="win_crlf"))] pub static NEWLINE: &'static [u8] = b"\r\n"; /// Internal utility for writing data into a string -- cgit v1.2.3