fix word-wrap bug when generating w/out spaces