Interaction between cracks and rigid lines in an infinite plate