Skip to content

Commit c5067a6

Browse files
dzhwinterwangkuiyi
authored andcommitted
"fix hook" (#7616)
* "add hook" * "small fix"
1 parent b870e04 commit c5067a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.copyright.hook

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ def generate_copyright(template, lang='C'):
4949
LANG_COMMENT_MARK = "//"
5050

5151
lines = template.split(NEW_LINE_MARK)
52-
ans = LANG_COMMENT_MARK + COPYRIGHT_HEADER + NEW_LINE_MARK
52+
ans = LANG_COMMENT_MARK + " " + COPYRIGHT_HEADER + NEW_LINE_MARK
5353
for lino, line in enumerate(lines):
5454
if lino == 0 or lino == 1 or lino == len(lines) - 1: continue
55-
ans += LANG_COMMENT_MARK + line + NEW_LINE_MARK
55+
ans += LANG_COMMENT_MARK + " " + line + NEW_LINE_MARK
5656

57-
return ans
57+
return ans + "\n"
5858

5959

6060
def lang_type(filename):

0 commit comments

Comments
 (0)