Make trailing whitespace a newline at all times
authorSteffen Mueller <smueller@cpan.org>
Sat, 19 Feb 2011 13:01:25 +0000 (14:01 +0100)
committerSteffen Mueller <smueller@cpan.org>
Tue, 12 Jul 2011 18:54:50 +0000 (20:54 +0200)
dist/ExtUtils-ParseXS/lib/ExtUtils/Typemaps/InputMap.pm
dist/ExtUtils-ParseXS/lib/ExtUtils/Typemaps/OutputMap.pm

index 0c567eb8cdf84c3f73a3b9aa08afc42e9ac15080..163353eca97258d7c258283f3a8b2c9755aee8b7 100644 (file)
@@ -90,6 +90,7 @@ sub cleaned_code {
   # Move C pre-processor instructions to column 1 to be strictly ANSI
   # conformant. Some pre-processors are fussy about this.
   $code =~ s/^\s+#/#/mg;
+  $code =~ s/\s*\z/\n/;
 
   return $code;
 }
index e60c7e6fa3f3ce7cbd36f6f8719a1ae36f2a4694..d29cae4e828e8bac20900b826e77ec9cf7ff39ff 100644 (file)
@@ -88,6 +88,7 @@ sub cleaned_code {
   # Move C pre-processor instructions to column 1 to be strictly ANSI
   # conformant. Some pre-processors are fussy about this.
   $code =~ s/^\s+#/#/mg;
+  $code =~ s/\s*\z/\n/;
 
   return $code;
 }