Fix for wrapped lines not being recognised