Commit ed2ac58b92693ebf47ce3a4890bfb6c328ba8998
1 parent
d12a249b
avoid extra newline
Showing
1 changed file
with
7 additions
and
1 deletions
app/br-print/br-print.cpp
| ... | ... | @@ -30,8 +30,14 @@ static void help() |
| 30 | 30 | |
| 31 | 31 | static void print_utemplate(br_const_utemplate utemplate, br_callback_context) |
| 32 | 32 | { |
| 33 | + static bool first = true; | |
| 34 | + if (first) { | |
| 35 | + first = false; | |
| 36 | + } else { | |
| 37 | + printf("\n"); | |
| 38 | + } | |
| 39 | + | |
| 33 | 40 | fwrite(utemplate->data, 1, utemplate->size, stdout); |
| 34 | - printf("\n"); | |
| 35 | 41 | } |
| 36 | 42 | |
| 37 | 43 | int main(int argc, char *argv[]) | ... | ... |