Format lines