summaryrefslogtreecommitdiffstats
path: root/src/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs4
1 files changed, 2 insertions, 2 deletions
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