Interesting, that might work and provide a performance boost as well.
I've continued to tinker a bit with it myself and have noticed that the handling of descriptions (putting them on one line) doesn't work all of the time, just most of the time. Obviously dependent upon the make up of the RTEXT.
Damn you BOLTREPORT and not being able to change the output format.
But anyway I'm thinking that iterating over the array and replacing double space with ^ or some other seldom used symbol, then replace ' ^' and '^ ' with ^ before removing multiple occurances of ^ might prove to be more robust.
Interesting, that might work and provide a performance boost as well.
I've continued to tinker a bit with it myself and have noticed that the handling of descriptions (putting them on one line) doesn't work all of the time, just most of the time. Obviously dependent upon the make up of the RTEXT.
Damn you BOLTREPORT and not being able to change the output format.
But anyway I'm thinking that iterating over the array and replacing double space with ^ or some other seldom used symbol, then replace ' ^' and '^ ' with ^ before removing multiple occurances of ^ might prove to be more robust.