commit | 9e6420bde6112113ba964c493c5d33f62fd1caea | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Dec 07 14:15:57 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Mar 15 11:36:42 2022 +0100 |
tree | d0c79916efc0dddf4d1366d844ad55027c331f66 | |
parent | a3afbfe96333832efbfa6be54f75dbe13ac7a3b3 [diff] |
printer yin BUGFIX use parent flag for when print Fixes #1746
diff --git a/src/printer_yin.c b/src/printer_yin.c index 93fd271..8883b68 100644 --- a/src/printer_yin.c +++ b/src/printer_yin.c
@@ -377,12 +377,11 @@ { int8_t inner_flag = 0; - (void)flag; - if (!when) { return; } + ypr_close_parent(ctx, flag); ly_print_(ctx->out, "%*s<when condition=\"", INDENT); lyxml_dump_text(ctx->out, when->cond, 1); ly_print_(ctx->out, "\"");