Zen, I think we need to use some html parsing module. The problem with doing this is that, e.g., if \n does not separate two lines, then we miss the second file.