Question on how roofs and walls interface

So when building I've had an issue where the triangular walls interface with roof blocks I have an issue no matter what. If I snap everything together than the wall protrudes from the roof. If I lower the wall slightly then there is a gap between the wall and roof. Anyway to make this seamless?