Very nice. My only problem is that, on closer examination, I found that the data dump truncates white space off the end of short lines, so substr ends up complaining that some of the substitutions are out of range. I'll need to use a series of regex statements or a foreach loop to handle this one.
Thanks for the suggestion, though. I'm gonna squirrel that one away for future use.
Jack