scripts/make-changelog: Replace [at]'s with @ char and use tab char for indentation
This commit is contained in:
@@ -20,6 +20,7 @@ def get_author_name_mail(author):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
account, name, mail, jabber = line.split(":")
|
account, name, mail, jabber = line.split(":")
|
||||||
|
mail = mail.replace(" [at] ", "@")
|
||||||
authors[account] = "%s <%s>" % (name, mail)
|
authors[account] = "%s <%s>" % (name, mail)
|
||||||
|
|
||||||
return authors[author]
|
return authors[author]
|
||||||
@@ -59,11 +60,10 @@ def create_log_entry(author, date, msg):
|
|||||||
author = get_author_name_mail(author)
|
author = get_author_name_mail(author)
|
||||||
date = date.split("T", 1)[0]
|
date = date.split("T", 1)[0]
|
||||||
|
|
||||||
indentation = " " * 8
|
|
||||||
lines = msg.splitlines()
|
lines = msg.splitlines()
|
||||||
lines = cleanup_msg_lines(lines)
|
lines = cleanup_msg_lines(lines)
|
||||||
lines[0] = "%s* %s" % (indentation, lines[0])
|
lines[0] = "\t* %s" % lines[0]
|
||||||
msg = ("\n%s" % indentation).join(lines)
|
msg = "\n\t".join(lines)
|
||||||
|
|
||||||
msg = strip_empty_lines(msg)
|
msg = strip_empty_lines(msg)
|
||||||
entry = "%s %s\n%s" % (date, author, msg)
|
entry = "%s %s\n%s" % (date, author, msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user