diff options
author | Pierre-Henri Symoneaux <pierre-henri.symoneaux@nokia.com> | 2016-09-11 21:01:14 +0200 |
---|---|---|
committer | Pierre-Henri Symoneaux <pierre-henri.symoneaux@nokia.com> | 2016-09-11 21:07:21 +0200 |
commit | 65212fe72e77462d151fa880690228d370d87485 (patch) | |
tree | 035770775962b671f7c156fbb9fa2f97c948e9a7 /src/utils.rs | |
parent | bee55a14260d1678ec6f786031084f71e34c9533 (diff) |
Windows specific newlines is now a default feature
The feature is named `win_crlf`
Fixes #33
Diffstat (limited to 'src/utils.rs')
-rw-r--r-- | src/utils.rs | 4 |
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
|