diff --git a/do-copyright.py b/do-copyright.py
index 882b6fb724381e54fb986247e0541c33444b470b..1155ab7a1c96bf2553c77b1ff0eddf868a82b6d4 100755
--- a/do-copyright.py
+++ b/do-copyright.py
@@ -73,14 +73,17 @@ def checkNote(filename):
 
         file.write(text)
 
+        skip = False
         for iLine in range(len(lines)):
 
-            skip = False
             for iBlock in range(len(startNote)):
                 if iLine>=startNote[iBlock] and iLine<=endNote[iBlock]:
                     print "   [remove " + str(iBlock) + "] " + (lines[iLine]).strip()
                     skip = True
 
+            if lines[iLine].strip() != "": # if line after comment is empty, also remove it
+                skip = False
+                    
             if not skip:
                 file.write(lines[iLine])