If all you're doing is reading into a buffer in order to paste the buffer, you're better off doing
read -sgml -nocc "$template_file"
which should insert the contents of the template file at the insertion point.
BTW, you're not the only one who's had problems pasting sgml rather than plain text. I think there might be a bug there somewhere, but haven't had the time to explore it.
> I've got some ACL code that we have been using with ADEPT 5.4.1/W. The > code is: > > # read the template file into a named paste buffer > read -buffer template -sgml -nocc "$template_file"; > # paste the contents of the buffer to the current location > paste template; > > What this did in 5.4.1/W was insert the contents of the file as SGML > into the current document. When I run this same code in 7.0 it pastes > the contents of the file as ASCII text. Any ideas out there? > > Here is an example of what the contents of the "template_file" are: > > > > > > Thanks. > > Myron M. Bries e-mail: firstname.lastname@example.org > John Deere Dubuque Works Ph: (319) 589-5478 > Dubuque, IA 52001 Fx: (319) 589-5478 > >