From: Brad Knowles Date: Thu, 22 Jan 2004 03:07:41 +0000 (+0100) Subject: nl.pl.in: X-Git-Tag: NTP_4_2_3~186^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c17bbdd6e5c0446bc76bc1e9a7ee99e7aa17fb86;p=thirdparty%2Fntp.git nl.pl.in: Better accounting for possible whitespace at the end of C routines (Bug 210). bk: 400f3e7dSIQI5_MnsK3ANFwFvnAKkA --- diff --git a/ntpdc/nl.pl.in b/ntpdc/nl.pl.in index 720968978c..813dc1f10d 100644 --- a/ntpdc/nl.pl.in +++ b/ntpdc/nl.pl.in @@ -26,7 +26,7 @@ while (<>) { printf " printf(\"offsetof($field) = %%d\\n\", \n\t (int) offsetof($type, $field));\n"; next; } - if (/^} *; *$/) { + if (/^}\s*;\s*$/) { printf " printf(\"\\n\");\n\n"; $found = 0 if $last; next;