Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!ATHENA.MIT.EDU!njw From: njw@ATHENA.MIT.EDU (Nicholas John Williams) Newsgroups: comp.soft-sys.andrew Subject: Lost styles when cutting&pasting Message-ID: Date: 24 Jul 90 22:03:12 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 26 I recently came across a bug with cutting and pasting inside of ez: A piece of text in one file contains characters from the `symbola' font (i.e. the characters are in the symbola style). This piece of text is selected and the `copy' operation performed. The text is then pasted into a new file. The new file now contains the pasted text surrounded in the symbola environment, but the style called `symbola' is not defined correctly in the new file - its definition is blank. This means that the characters in that style will not be seen correctly, and the only way to get around this once the text has been pasted, is to edit the file with vi or something and fill in the correct definition of symbola. I should think that this would happen with any style pasted into a file which does not use a template defining that style (for example, pasting a "syntax example" from a help file into a default ez file produces the same effect). Has anybody out there got an idea of the best way to fix this problem? I would guess it to be something to do with changing the paste code so it ensures the new stylesheet has all the neccessary styles. Nick Williams. ------------------ njw@athena.mit.edu njw@doc.imperial.ac.uk