From c5067a6af00ccb9398b07259b773848b58c242e7 Mon Sep 17 00:00:00 2001 From: dzhwinter Date: Thu, 18 Jan 2018 03:56:47 +0800 Subject: [PATCH] "fix hook" (#7616) * "add hook" * "small fix" --- .copyright.hook | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.copyright.hook b/.copyright.hook index de97ce90ac4..2446e272481 100644 --- a/.copyright.hook +++ b/.copyright.hook @@ -49,12 +49,12 @@ def generate_copyright(template, lang='C'): LANG_COMMENT_MARK = "//" lines = template.split(NEW_LINE_MARK) - ans = LANG_COMMENT_MARK + COPYRIGHT_HEADER + NEW_LINE_MARK + ans = LANG_COMMENT_MARK + " " + COPYRIGHT_HEADER + NEW_LINE_MARK for lino, line in enumerate(lines): if lino == 0 or lino == 1 or lino == len(lines) - 1: continue - ans += LANG_COMMENT_MARK + line + NEW_LINE_MARK + ans += LANG_COMMENT_MARK + " " + line + NEW_LINE_MARK - return ans + return ans + "\n" def lang_type(filename): -- GitLab