Handling overflow of pre tag