Skip to content

Commit f6876dd

Browse files
Fixed - wrong number of tokens issues
Signed-off-by: Ihor Aleksandrychiev <ihor.aleksandrychiev@northern.tech>
1 parent 76915db commit f6876dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generator/_scripts/cfdoc_metadata.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ def parseHeader(lines):
4848
return header
4949
if not in_header:
5050
continue
51+
# Skip list items (lines starting with -)
52+
if line.lstrip().startswith("-"):
53+
continue
5154
token_list = line.split(":")
5255
if len(token_list) != 2:
5356
print("parseHeader: ERROR in %s - wrong number of tokens" % line)

0 commit comments

Comments
 (0)