diff --git a/rst_template/opf_docbook.py b/rst_template/opf_docbook.py index 1abf173..d01ca33 100644 --- a/rst_template/opf_docbook.py +++ b/rst_template/opf_docbook.py @@ -141,7 +141,7 @@ def build_revhistory(book_file): from subprocess import Popen, PIPE # Variables for formating git log - log_format = '%h%x01%an%x01%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x01%s%x02' + log_format = '%h%x01%an%x01%ad%x01%s%x02' log_fields = ['id', 'author', 'date', 'subject'] # Retrieve log @@ -154,7 +154,7 @@ def build_revhistory(book_file): # Format log into revision history revision = '\n' for entry in log: - revision = revision + '' + entry['date'] + '' +\ + revision = revision + '' + entry['date'].split(' ')[0] + '' +\ entry['subject'] + ' (' + entry['id'] + ')\n' revision = revision + '\n'