Fix multiline Inside Pair

The culprit here was the shrink function, which was not adjusted to handle multiline targets. Also updated the tests to include this case.