From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47645c013367a8d6,start X-Google-Attributes: gid103376,public From: woodruff@tanana.llnl.gov (John Woodruff) Subject: Text control characters Date: 1997/09/10 Message-ID: #1/1 X-Deja-AN: 271400799 Organization: Lawrence Livermore National Lab Reply-To: woodruff1@llnl.gov Newsgroups: comp.lang.ada Date: 1997-09-10T00:00:00+00:00 List-Id: By coincidence, Jeff Meyer asked a question on this forum that is a topic I have been puzzling. He wants a multi-line text box; I want multiple lines in a string constant. Maybe one answer fits all ... I can construct some function that returns a string. I wish to compose such functions in a way to make a textual report, and deliver that report as a string. I wish I could format the string into lines in a way to make it relatively easy to read. The caller of this function may very well choose to Ada.Text_IO.Put the string into a file, or perhaps might use the string in some other way. How can I construct a string so that Put will produce line_terminators in the output? Example: output : constant string := "line 1 " & <*what goes here?*> & "line 2"; -- I want the result of Ada.Text_IO.Put (output) ; -- to be line 1 line 2 Partial answer: if I use ada.characters.latin_1.CR & ada.characters.latin_1.LF this works on some operating system. Is there a standard-compliant way to solve the problem in general? -- John Woodruff N I F \ ^ / Lawrence Livermore National Lab =====---- < 0 > 510 422 4661 / v \