1. A method comprising: synthesizing a photolithography mask having elongated features; finding an end-to-end gap between two features, the ends of the two features facing the gap being linearly offset from one another; applying a sub-resolution assist feature to the end-to-end gap between the elongated features; and modifying the synthesized photolithography mask to include the sub-resolution assist feature.