I find @MyPatronusIsACat views a bit astonishing.
My husband applied for a job when I was 7 months pregnant. He had already agreed with his employer's he'd be taking shared parental leave. When he got the new job, and it was offered to him, he made it a condition he needed to take two months parental leave on x dates. So I think the example of a partner with a pregnant wife/girlfriend is a good one actually: also, its much, MUCH harder for firms to find cover for shorter periods.
In my sector, my maternity leave will be long enough that it will attract a lot of people keen to get managerial experience, and employers are happy to give fixed term roles to people to help them gain experience without being on the hook for a permanent contract. So, its a win-win.
I'm currently applying for a role at 7 months pregnant: now they're hiring lots of different people at once, its a v big organisation, and a long drawn out recruitment process, but if I'm successful its the perfect time IMO. My organisation will have already recruited my mat leave cover. I can just not start the new role till Im finished. And they'll already have done lots of recruitment, so will have a panel of other people who can take the role.
The only time I've ever been annoyed to have hired a pregnant woman was for a fixed term maternity cover - 6 months - when we hired someone who it turned out was herself 5 months pregnant. It was a small charity, and it meant that we had to recruit the role twice and really really struggled with the second recruitment because it was such a short space of time. I did think that was a bit off, but equally I understand her reasoning and don't think she did anything 'wrong'.
I'm mystified though that in a job someone could be in for 5-10 years, one mat leave is an issue. It does make me think we need more mandated paternity leave.