Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!mit-eddie!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU Newsgroups: comp.windows.x Subject: Re: Newline character in labelString Message-ID: <9009272132.AA24806@excess.lcs.mit.edu> Date: 27 Sep 90 21:32:08 GMT References: <21550001@teecs.UUCP> Sender: root@athena.mit.edu (Wizard A. Root) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 18 > Problem - How can I insert a newline character into the resource file? > Note the following does NOT work: > > *LABEL_NAME.labelString: "Line One Of Label \n Line Two:" According to the 2nd edition of the Digital Press refernece book on Xlib, section 10.11.3.1, "Storing into a Resource Database": To allow values to contain arbitrary octets, the 4-character sequence \nnn, where n is a digit in the range of "0"-"7", is recognized and replaced with a single byte that contains this sequence interpreted as an octal number. So try *LABEL_NAME.labelString: Line One Of Label \012 Line Two: