printer yin BUGFIX close parent before list min/max elem

Fixes #1948
diff --git a/src/printer_yin.c b/src/printer_yin.c
index db54819..e1d78f6 100644
--- a/src/printer_yin.c
+++ b/src/printer_yin.c
@@ -955,9 +955,11 @@
     ypr_config(pctx, node->flags, node->exts, &flag);
 
     if (list->flags & LYS_SET_MIN) {
+        ypr_close_parent(pctx, &flag);
         ypr_unsigned(pctx, LY_STMT_MIN_ELEMENTS, 0, list->exts, list->min);
     }
     if (list->flags & LYS_SET_MAX) {
+        ypr_close_parent(pctx, &flag);
         if (list->max) {
             ypr_unsigned(pctx, LY_STMT_MAX_ELEMENTS, 0, list->exts, list->max);
         } else {