Gitlab migration complete. If you have any issue please read the FAQ.

Verified Commit 08c2c906 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

WIP generation script

parent 4248b6de
......@@ -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")
......
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