Skip to content
Snippets Groups Projects
Verified Commit 08c2c906 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

WIP generation script

parent 4248b6de
No related branches found
No related tags found
No related merge requests found
......@@ -104,12 +104,16 @@ for d in dirs:
# open file and get the title after the header
count = 0
title = ""
bp = 9
with open(fileName, 'r') as f:
for line in f:
count += 1
if count == 9:
title = line
break
if count == bp:
if len(line) > 2:
title = line
break
else:
bp += 1
# remove first and last chars
title = title.rstrip("\n\r")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment