Now extracting lines correctly of both table and content