commit | e93073e9d492e4c140b28c12680549f32fc29cbc | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Dec 07 14:15:57 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Dec 07 14:15:57 2021 +0100 |
tree | 4432cc22c25bafc09c4f18aeb91f92001f145b4e | |
parent | 8a67effe1b6ef0279c3b1460d4c1c791fb38f02b [diff] [blame] |
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, "\"");