Commit c27982a9 authored by Nijsse, Bart's avatar Nijsse, Bart
Browse files

ignore empty columns

parent bf6a5f46
......@@ -40,11 +40,12 @@ for sheetname in wb.sheetnames:
mkdocs_yaml.write("- '"+sheetname+"':\n")
columns = {}
for i, cell in enumerate(sheet[1]):
columns[i] = cell.value.strip("# ")
if cell.value:
columns[i] = cell.value.strip("# ")
for row in rows:
for i, cell in enumerate(row):
if str(cell.value)[0] == "#":
if str(cell.value)[0] == "#" or not cell.value:
break
if i == 0 and cell.value != package:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment