Better handling of wrapping for long caption lines in text output