Shorten last work if needed.
Wrapping of node captions working satisfactorily.
Clean up word wrapping code.