export text formatting based on styles