[Xerte] Escape sequences

Marc Torruella Altadill mtorruella at viguera.com
Thu Jun 25 15:32:35 BST 2009


Hi Fred,
What i use to use is \r\n, dunno why, just done it all my programming life
:-).
If you wanna know the difference between \r and \n check what I found:

Source: http://www.htmlcodetutorial.com/help/ptopic1794.html

\n is a new line and \r is a carriage return

http://en.wikipedia.org/wiki/Newline

http://www.everything2.com/index.pl?node=newline
http://www.everything2.com/index.pl?node=carriage%20return

-----Mensaje original-----
De: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] En nombre de Fred Riley
Enviado el: jueves, 25 de junio de 2009 16:23
Para: Xerte discussion list
Asunto: [Xerte] Escape sequences

Just a couple of very minor queries, not problems, honest:

1. In the app I'm working on, put together by someone else (see prior
email), there's the following code:

  summary += texts[i] + '\r\r';

I take it that \r is an escape sequence, but what for? The two \r seem
to generate a new line, but I'd have expected \n for that. Is there a
help topic on the escapes available in Xerte?

2. In a text icon the text simply reads:

{summary}

which displays a text variable built up in a previous script icon. If I
add anything else to the text then the var ceases to display and I just
see the string "{summary}". What are the rules for using this construct?

Just minor curiousities, no big, feel free to ignore :)

Cheers

Fred Riley
Learning Technologist
School of Nursing, Midwifery and Physiotherapy, University of Nottingham
Vcard: http://www.nottingham.ac.uk/nursing/sonet/about/fr_uon.vcf 
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte



More information about the Xerte mailing list