We used a better wordwrap function provided by Jinja which let us wrap the titles in the correct way.