]> Devi Nivas Git - cs3210-lab1.git/commitdiff
can break after }; too
authorrsc <rsc>
Fri, 8 Sep 2006 14:19:30 +0000 (14:19 +0000)
committerrsc <rsc>
Fri, 8 Sep 2006 14:19:30 +0000 (14:19 +0000)
runoff1

diff --git a/runoff1 b/runoff1
index 67cb603ebb4275da7c6b9c2d24a3ce0b530efac0..ed29ea509032acc90eca6290a1de13accc340649 100755 (executable)
--- a/runoff1
+++ b/runoff1
@@ -42,7 +42,7 @@ for($i=0; $i<@lines; ){
                                $breakbefore = $j;
                                $lines[$j] = "";
                        }
-                       if($lines[$j] =~ /^}$/){
+                       if($lines[$j] =~ /^};?$/){
                                $breakbefore = $j+1;
                        }
                        if($lines[$j] =~ /^{$/){