diff --git a/do-copyright.py b/do-copyright.py
index 5f26c9e025bb89d4370e05eef82bec7546c126f9..bca317695574f9196e08d5a7a70ca17c1319ce9f 100755
--- a/do-copyright.py
+++ b/do-copyright.py
@@ -79,8 +79,8 @@ def checkNote(filename):
 
             skip = False
             for iBlock in range(len(startNote)):
-                if iLine>=startNote[iBlock] and iLine<endNote[iBlock]:
-                    print "    " + lines[iLine] + "  [remove " + str(iBlock) + "]"
+                if iLine>=startNote[iBlock] and iLine<=endNote[iBlock]:
+                    print "    " + strip(lines[iLine]) + "  [remove " + str(iBlock) + "]"
                     skip = True
 
             if not skip: