Using unbreakable spaces to achieve this looks like a hack, but seems to be the only thing working well in practice.