diff --git a/projects/rocprofiler-compute/utils/update_license.py b/projects/rocprofiler-compute/utils/update_license.py index 9594823b83..4342508c4e 100755 --- a/projects/rocprofiler-compute/utils/update_license.py +++ b/projects/rocprofiler-compute/utils/update_license.py @@ -25,7 +25,10 @@ def cacheLicenseFile(infile, comment="#"): license = "" with open(infile, "r") as file_in: for line in file_in: - license += comment + " " + line + license += comment + if line.strip() != "": + license += " " + license += line return license