Fix spacing after addresses in double quotes.

Optimize match for leading numeric date.
This commit is contained in:
Pavel Roskin 2003-06-02 18:14:57 +00:00
parent 341ad1d804
commit 84d9703786

View File

@ -30,12 +30,10 @@ while (<CHANGELOG>) {
s/\s*$//; s/\s*$//;
# Make sure there are exactly 2 spaces before the e-mail. # Make sure there are exactly 2 spaces before the e-mail.
s/(^\w.*\w)\s+</$1 </; s/(^\w.*[^\s])\s+</$1 </;
# Make sure there are exactly 2 spaces after numeric dates. # Make sure there are exactly 2 spaces after numeric dates.
if (/[0-9]+-[0-9]+-[0-9]+\w/) { s/(^[0-9]+-[0-9-]+)\s+/$1 /;
s/(^[0-9-]+)\s+/$1 /;
}
# Up to 7 spaces and tab or up to 8 spaces -> tab. # Up to 7 spaces and tab or up to 8 spaces -> tab.
if (/^( {1,7}\t| {1,8})(.*)/) { if (/^( {1,7}\t| {1,8})(.*)/) {