diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-03-15 16:11:19 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-03-15 16:11:19 +0000 |
commit | 85315f2cc85a0c44055cd94c1b7de8cfe11b46e1 (patch) | |
tree | 8f6ffe7e908866a227cb74deb906d5a0ea1de42d /src/formatter.cpp | |
parent | 14a460c60b162aefaf1798c71ac790ad574e739f (diff) | |
download | libbu++-85315f2cc85a0c44055cd94c1b7de8cfe11b46e1.tar.gz libbu++-85315f2cc85a0c44055cd94c1b7de8cfe11b46e1.tar.bz2 libbu++-85315f2cc85a0c44055cd94c1b7de8cfe11b46e1.tar.xz libbu++-85315f2cc85a0c44055cd94c1b7de8cfe11b46e1.zip |
Ito is updated and is more posix compliant.
Diffstat (limited to 'src/formatter.cpp')
-rw-r--r-- | src/formatter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/formatter.cpp b/src/formatter.cpp index 27925b0..7ebe256 100644 --- a/src/formatter.cpp +++ b/src/formatter.cpp | |||
@@ -239,7 +239,11 @@ Bu::Formatter &Bu::operator<<( Bu::Formatter &f, Bu::Formatter::Special s ) | |||
239 | { | 239 | { |
240 | case Formatter::nl: | 240 | case Formatter::nl: |
241 | { | 241 | { |
242 | #ifdef WIN32 | ||
243 | f.write("\r\n", 2 ); | ||
244 | #else | ||
242 | f.write("\n", 1 ); | 245 | f.write("\n", 1 ); |
246 | #endif | ||
243 | char ci = f.getIndentChar(); | 247 | char ci = f.getIndentChar(); |
244 | for( int j = 0; j < f.getIndent(); j++ ) | 248 | for( int j = 0; j < f.getIndent(); j++ ) |
245 | f.write( &ci, 1 ); | 249 | f.write( &ci, 1 ); |