Fixed text copy from output #2

The HTML routine will need to be completely re-written in the text
document class, however.