Dokumentation verschönert

This commit is contained in:
2016-06-27 11:53:01 +02:00
parent 4c8616c309
commit 1cd06f4b7c
2 changed files with 8 additions and 14 deletions

View File

@@ -32,7 +32,7 @@ if len(sys.argv) <= 1:
flname, flext = os.path.splitext(fl)
if flext == '.tex':
rawdate = int(git.log('-1', fl,
pretty='format:"%at"').split('"')[1])
pretty='format:"%at"').split('"')[1])
date = [time.strftime("%d. %B %Y %H:%M", time.localtime(rawdate)),
time.strftime("%d", time.localtime(rawdate)),
time.strftime("%m", time.localtime(rawdate)),
@@ -40,7 +40,7 @@ if len(sys.argv) <= 1:
time.strftime("%H", time.localtime(rawdate)),
time.strftime("%M", time.localtime(rawdate))]
author = [git.log('-1', fl, pretty='format:"%an"').split('"')[1],
git.log('-1', fl, pretty='format:"%ae"').split('"')[1]]
git.log('-1', fl, pretty='format:"%ae"').split('"')[1]]
commit = [git.log('-1', fl, pretty='format:"%H"').split('"')[1],
git.log('-1', fl, pretty='format:"%h"').split('"')[1]]
f = codecs.open(flname+".gfi", "w", encoding="utf-8")