Added handling for wrapped formatting in text.