You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In liquidsoap v.1.1.1, Including an actual backslash in a liquidsoap string is difficult.
For a backslash, the simple declaration: bs = "\\"
generates an "Unterminated String" error. The second backslash appears to be escaping the second quote, which is not what I expected.
similarly, the declaration:
lf = "\\n"
does not generate a string containing a backslash-n combination, which is needed, for instance, in constructing a multi-line system call, such as using socat to set another liquidsoap instance's interactive.string variables
The work-around I have been able to come up with is to base64-encode the desired string and assign it using the base64.decode function:
In liquidsoap v.1.1.1, Including an actual backslash in a liquidsoap string is difficult.
For a backslash, the simple declaration:
bs = "\\"
generates an "Unterminated String" error. The second backslash appears to be escaping the second quote, which is not what I expected.
similarly, the declaration:
lf = "\\n"
does not generate a string containing a backslash-n combination, which is needed, for instance, in constructing a multi-line system call, such as using socat to set another liquidsoap instance's interactive.string variables
The work-around I have been able to come up with is to base64-encode the desired string and assign it using the base64.decode function:
and then including them in other strings using the #{bs} or #{lf} phrase.
The text was updated successfully, but these errors were encountered: