Please, I'm a beginner in Hugs, but I try to put the characters \n or \t but it doesn't work well. I'm using november 1999 version. When I use, for instance, the string "something\n\n" the result is "something\n\n" and doesn't make a newline. With \t is the same problem. Can someone help me please? Thanks in advance. Vieira -----------------------------|-------------------------------- Francisco Vieira de Souza |"O unico tirano que aceito DIE-UFPI-Fone:(086) 215 5837 |neste mundo eh a voz silenciosa Celular: (086) 987-9926 |dentro de mim, a consciencia" E-mail: vieira@ufpi.br | (Mahatma Gandhi, 1869-1948) _____________________________|________________________________
Hi, Francisco> When I use, for instance, the string "something\n\n" the Francisco> result is "something\n\n" and doesn't make a Francisco> newline. With \t is the same problem. the effect of the control characters depends on the context of use. If they are used with "putStr", it works (with February2000 hugs), example: Main> putStr "First\tLine\nNext\t\tLine" First Line Next Line Main> Good luck -- Christoph Herrmann E-mail: herrmann@fmi.uni-passau.de WWW: http://brahms.fmi.uni-passau.de/cl/staff/herrmann.html
participants (2)
-
Ch. A. Herrmann -
Francisco Vieira de Souza