Finally, break_into_lines() works about perfectly!  Could probably stand to be cleaned up a bit, but it works!