commit | 59edcf784faa2a24fda5d5aa4edfbec5626203c3 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Thu May 02 09:53:17 2019 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu May 02 09:53:17 2019 +0200 |
tree | 25a8694885153797d80db0d58c4e25c418cd86ad | |
parent | 87e78cae1aaede123ee205fb405024935ae9e72e [diff] |
YANG printer BUGFIX missing opening tag for typedefs/groupings in grouping
diff --git a/src/printer_yang.c b/src/printer_yang.c index 39c173d..2dfd5e6 100755 --- a/src/printer_yang.c +++ b/src/printer_yang.c
@@ -1032,10 +1032,12 @@ ypr_reference(ctx, grp->ref, grp->exts, &flag); LY_ARRAY_FOR(grp->typedefs, u) { + ypr_open(ctx->out, &flag); yprp_typedef(ctx, &grp->typedefs[u]); } LY_ARRAY_FOR(grp->groupings, u) { + ypr_open(ctx->out, &flag); yprp_grouping(ctx, &grp->groupings[u]); }