fixed a bug in insert-header

This commit is contained in:
Daniel Knuettel 2017-12-29 14:01:56 +01:00
parent 4eaf9feeea
commit 7f8001e6ac
1 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ def insert_templates_all(path, file_ending, ignore_paths, license_name, modifier
data = format_template(license_name, data, modifiers)
if(format_ == "line"):
text = uncomment_line_based(data, comment_start, fancy = fancy,
after_comment = after_comment, pad_to = pad_to) + "\n\n"
after_comment = after_comment, pad_to = pad_to)
else:
if(method == "block"):
text = uncomment_multiline_block_oriented(data,
@ -145,7 +145,7 @@ def insert_templates_all(path, file_ending, ignore_paths, license_name, modifier
after_comment = after_comment,
fancy = fancy, border = border,
pad_to = pad_to)
text += "\n\n"
if(confirm):
callbacks.append(get_path_confirmation)