PR that works even for ST3

This is a bit gimmicky, in that if there's two regions of code with the exact same contents, and the second one is folded, then after prettifying, the first one will be folded instead. However, i think that's very unlikely to happen IRL, so let's land this.

Thanks!