Some preliminary work for grouped longitudinal graphs.
Should now handle foreign newlines.
Handle foreign newline characters.