mistake in documentation?

Discuss any general programming issues here
Post Reply
peceha
Posts: 111
Joined: Tue Dec 13, 2016 8:39 am
Location: Poland

mistake in documentation?

Post by peceha » Tue Jul 04, 2017 12:56 am

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

User avatar
airsoftsoftwair
Posts: 3185
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: mistake in documentation?

Post by airsoftsoftwair » Tue Jul 04, 2017 12:24 pm

That seems to be a Hollywood bug. I'll fix this, thanks for reporting!

User avatar
airsoftsoftwair
Posts: 3185
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: mistake in documentation?

Post by airsoftsoftwair » Sat Aug 12, 2017 3:33 pm

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.

peceha
Posts: 111
Joined: Tue Dec 13, 2016 8:39 am
Location: Poland

Re: mistake in documentation?

Post by peceha » Sat Aug 12, 2017 7:32 pm

Thanks.

Post Reply