lib/cpee/processtransformation/structures.rb in cpee-1.3.160 vs lib/cpee/processtransformation/structures.rb in cpee-1.3.161

- old
+ new

@@ -335,14 +335,14 @@ num = 0 self.each{|n| num += 1 if n.first == n.last } num == self.length end - def add_breaks(context) + def add_breaks(context,front=true) trueloops = self.find_all{ |t| t.last == t.first }.length tb = Break.new(context) if trueloops == self.length - self << [nil,tb] + self << (front ? [nil,tb] : [tb,nil]) else self.each do |t| t << tb unless t.last == t.first ### an explicit break end end