This is irritating. You have an ally join a battle and suddenly odd deployment. Ships lost for no good reason.
Flat deployment lines would solve the issue. Stick the ally on one end. If the ally has a lot of ships, have multiple lines.
Or combine the two allied fleets and do the no curve, usual deployment.