commit | 38266a46d02e42184564a610e6ceb39e81a97bf8 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Aug 11 11:28:56 2023 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Aug 11 11:28:56 2023 +0200 |
tree | cfb1b49111a84587c77a246850163a544db6e2fe | |
parent | 84d06841368e5a01567ecc9f15531710345829fa [diff] [blame] |
parser yang BUGFIX avoid storing \r char Causes issues on print. Refs #2076
diff --git a/src/parser_yang.c b/src/parser_yang.c index 49ea8b7..e18ed17 100644 --- a/src/parser_yang.c +++ b/src/parser_yang.c
@@ -421,6 +421,9 @@ LOGVAL_PARSER(ctx, LY_VCODE_INCHAR, ctx->in->current[0]); return LY_EVALID; } + + /* skip this character, do not store it */ + ++ctx->in->current; /* fallthrough */ case '\n': if (block_indent) {