diff options
Diffstat (limited to 'src/formatter.cpp')
| -rw-r--r-- | src/formatter.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/formatter.cpp b/src/formatter.cpp index 2fadd96..8c06bde 100644 --- a/src/formatter.cpp +++ b/src/formatter.cpp | |||
| @@ -176,10 +176,16 @@ Bu::Formatter &Bu::operator<<( Bu::Formatter &rOut, Bu::Formatter::Special s ) | |||
| 176 | switch( s ) | 176 | switch( s ) |
| 177 | { | 177 | { |
| 178 | case Formatter::nl: | 178 | case Formatter::nl: |
| 179 | rOut.write("\n", 1 ); | 179 | { |
| 180 | char ci = rOut.getIndentChar(); | 180 | rOut.write("\n", 1 ); |
| 181 | for( int j = 0; j < rOut.getIndent(); j++ ) | 181 | char ci = rOut.getIndentChar(); |
| 182 | rOut.write( &ci, 1 ); | 182 | for( int j = 0; j < rOut.getIndent(); j++ ) |
| 183 | rOut.write( &ci, 1 ); | ||
| 184 | } | ||
| 185 | break; | ||
| 186 | |||
| 187 | case Formatter::flush: | ||
| 188 | rOut.doFlush(); | ||
| 183 | break; | 189 | break; |
| 184 | } | 190 | } |
| 185 | return rOut; | 191 | return rOut; |
