Page 1 of 1

mistake in documentation?

Posted: Tue Jul 04, 2017 12:56 am
by peceha
Hello, in the STRING chapter you can see following example:
If a newline character follows a backslash, Hollywood will insert a newline character into the string also and will continue parsing the string on the next line. For example, the following two statements create the same string:

a$ = "Hello\nWorld!"
a$ = "Hello\
World!"
whenever I try the second way (with the "\") I get the error:
Error in line 2 (Unnamed1): Unknown sequence character after backslash!
Thanks

Re: mistake in documentation?

Posted: Tue Jul 04, 2017 12:24 pm
by airsoftsoftwair
That seems to be a Hollywood bug. I'll fix this, thanks for reporting!

Re: mistake in documentation?

Posted: Sat Aug 12, 2017 3:33 pm
by airsoftsoftwair

Code: Select all

- Fix: Using a backslash to span a string across multiple lines didn't work when a carriage return
  instead of a newline character followed the backslash
As a workaround, simply save your scripts in Amiga/Unix format, i.e. using LF instead CRLF on line breaks. Then the backslash will work in 7.0 as well.

Re: mistake in documentation?

Posted: Sat Aug 12, 2017 7:32 pm
by peceha
Thanks.