We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b870e04 commit c5067a6Copy full SHA for c5067a6
.copyright.hook
@@ -49,12 +49,12 @@ def generate_copyright(template, lang='C'):
49
LANG_COMMENT_MARK = "//"
50
51
lines = template.split(NEW_LINE_MARK)
52
- ans = LANG_COMMENT_MARK + COPYRIGHT_HEADER + NEW_LINE_MARK
+ ans = LANG_COMMENT_MARK + " " + COPYRIGHT_HEADER + NEW_LINE_MARK
53
for lino, line in enumerate(lines):
54
if lino == 0 or lino == 1 or lino == len(lines) - 1: continue
55
- ans += LANG_COMMENT_MARK + line + NEW_LINE_MARK
+ ans += LANG_COMMENT_MARK + " " + line + NEW_LINE_MARK
56
57
- return ans
+ return ans + "\n"
58
59
60
def lang_type(filename):
0 commit comments