yanglint BUGFIX delayed string printing

... at the output of the xpath option.
diff --git a/tools/lint/common.c b/tools/lint/common.c
index f177527..4afba03 100644
--- a/tools/lint/common.c
+++ b/tools/lint/common.c
@@ -588,6 +588,8 @@
                             key->schema->name, lyd_get_value(key));
                 }
                 printf(")\n");
+            } else {
+                printf("\n");
             }
         }
     }
diff --git a/tools/lint/tests/interactive/data_xpath.test b/tools/lint/tests/interactive/data_xpath.test
index 6edb095..a1dabbc 100644
--- a/tools/lint/tests/interactive/data_xpath.test
+++ b/tools/lint/tests/interactive/data_xpath.test
@@ -30,6 +30,12 @@
     ly_cmd "data -x /moddatanodes:dnc/con/lt $data" "$r1\r\n  $r2"
 }}
 
+test data_xpath_container {--xpath to container} {
+-setup $ly_setup -cleanup $ly_cleanup -body {
+    ly_cmd "load moddatanodes"
+    ly_cmd "data -x /moddatanodes:dnc/con $data" "container \"con\""
+}}
+
 test data_xpath_err_default {--xpath cannot be combined with --default} {
 -setup $ly_setup -cleanup $ly_cleanup -body {
     ly_cmd "load moddatanodes ietf-netconf-with-defaults"