Adjusts formatting in warnings method