1
0
mirror of https://github.com/daknuett/licor synced 2024-07-20 12:15:24 +00:00

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

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) data = format_template(license_name, data, modifiers)
if(format_ == "line"): if(format_ == "line"):
text = uncomment_line_based(data, comment_start, fancy = fancy, 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: else:
if(method == "block"): if(method == "block"):
text = uncomment_multiline_block_oriented(data, 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, after_comment = after_comment,
fancy = fancy, border = border, fancy = fancy, border = border,
pad_to = pad_to) pad_to = pad_to)
text += "\n\n"
if(confirm): if(confirm):
callbacks.append(get_path_confirmation) callbacks.append(get_path_confirmation)