correctly handle the ndashes and don't remove the space before the links