Implemented line breaking and formatting passes