Fix text parser leaf-list / leaf succession
See https://github.com/clicon/clixon/issues/324
This commit is contained in:
parent
4f9ed02a46
commit
01b38c6645
1 changed files with 4 additions and 3 deletions
|
|
@ -156,12 +156,13 @@ xml2txt1(cxobj *xn,
|
|||
}
|
||||
}
|
||||
}
|
||||
if (yn && yang_keyword_get(yn) == Y_LEAF_LIST && *leafl){
|
||||
if (strcmp(*leaflname, yang_argument_get(yn)) != 0){
|
||||
if (*leafl && yn){
|
||||
if (yang_keyword_get(yn) == Y_LEAF_LIST && strcmp(*leaflname, yang_argument_get(yn)) == 0)
|
||||
;
|
||||
else{
|
||||
*leafl = 0;
|
||||
*leaflname = NULL;
|
||||
(*fn)(f, "%*s\n", 4*(level), "]");
|
||||
// XXX
|
||||
}
|
||||
}
|
||||
xc = NULL; /* count children (elements and bodies, not attributes) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue