- Subject: Re: S-lang - string too long
- From: "John E. Davis" <davis>
- Date: Mon, 11 Mar 2002 18:00:41 -0500
Morten Bo Johansen <mojo@xxxxxxxx> wrote:
>Could I do something to circumvent that. Currently the template
>looks like this:
>
>html_template ()
>{
> insert ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
> html_insert_move ("\n\n<html>\n\n<head>\n<title>@</title>\n<style\ type=\"text/css\"><!--\n\n-->\n</style>\n<meta\ http-equiv=\"Content-Type\"\ content=\"text/html;charset=iso-8859-1\">\n<meta\ name=\"keywords\"\ content=\"\">\n<meta\ name=\"description\"\ content=\"\">");
You have to construct the string in pieces:
html_insert_move ("\n\n<html>\n\n"
+ ...
+ "content=\"\">");
This limitation is actually documented in the slang user's guide:
\sect3{Strings} #%{{{
A string literal must be enclosed in double quotes as in:
#v+
"This is a string".
#v-
Although there is no imposed limit on the length of a string,
string literals must be less than 256 characters in length. It is
possible to go beyond this limit by string concatenation, e.g.,
#v+
"This is the first part of a long string"
+ "and this is the second half"
#v-
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2002 date index]
[2002 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]