summaryrefslogtreecommitdiffstats
path: root/lib/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output.c')
-rw-r--r--lib/output.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/output.c b/lib/output.c
index 34ff7dab..f283969f 100644
--- a/lib/output.c
+++ b/lib/output.c
@@ -377,7 +377,9 @@ static inline char *fmt_subcheck_output(mp_output_format output_format, mp_subch
377 377
378 while (tmp_string != NULL) { 378 while (tmp_string != NULL) {
379 *tmp_string = '\0'; 379 *tmp_string = '\0';
380 asprintf(&intermediate_string, "%s%s\n%s", intermediate_string,check.output, generate_indentation_string(indentation+1)); // one more indentation to make it look better 380 asprintf(&intermediate_string, "%s%s\n%s", intermediate_string, check.output,
381 generate_indentation_string(
382 indentation + 1)); // one more indentation to make it look better
381 383
382 if (*(tmp_string + 1) != '\0') { 384 if (*(tmp_string + 1) != '\0') {
383 check.output = tmp_string + 1; 385 check.output = tmp_string + 1;
@@ -394,13 +396,14 @@ static inline char *fmt_subcheck_output(mp_output_format output_format, mp_subch
394 // add the rest (if any) 396 // add the rest (if any)
395 if (have_residual_chars) { 397 if (have_residual_chars) {
396 char *tmp = check.output; 398 char *tmp = check.output;
397 xasprintf(&check.output, "%s\n%s%s", intermediate_string, generate_indentation_string(indentation+1), tmp); 399 xasprintf(&check.output, "%s\n%s%s", intermediate_string,
400 generate_indentation_string(indentation + 1), tmp);
398 } else { 401 } else {
399 check.output = intermediate_string; 402 check.output = intermediate_string;
400 } 403 }
401 } 404 }
402 asprintf(&result, "%s\\_[%s] - %s", generate_indentation_string(indentation), state_text(mp_compute_subcheck_state(check)), 405 asprintf(&result, "%s\\_[%s] - %s", generate_indentation_string(indentation),
403 check.output); 406 state_text(mp_compute_subcheck_state(check)), check.output);
404 407
405 subchecks = check.subchecks; 408 subchecks = check.subchecks;
406 409