I tried "\n" but that didn't work.
e.g.
[driptn (print "Hello world - First blog post using dript Lisp\n")/]

but that results in the following error message:
{Error lisp_err_expecting_end_of_string at [,] in }

Check out my fun lisp site at:

http://lisp.rolandtanglao.com/

CommentFileSizeAuthor
#4 dript.zip66.06 KBchelahmy

Comments

chelahmy’s picture

Assigned: Unassigned » chelahmy

A nice tag line you have over the site.

I think it is a bug in the string escape character handling. Not just the \n. I saw the function list in your site added slashes before the quotes. It should not be that way. I will have a look at it immediately. By the way it is still in the development release. However \n will not get you the newline unless you wrap the output with <pre> tags. Other way to get newline effect is to print <br>. Output is treated as html text.

chelahmy’s picture

I've already fixed the bugs and committed the changes to the cvs. Only three files affected: dript.module, lisp.inc and lisp_parser.inc. It will take sometimes before the server create the tar ball. Or you may get them from the cvs directly. Depending on input format you may enclose or not <pre> tags around string containing \n. HTML tags are supported inside string. There will be no more slashes in front of quotes as in (funs).

Roland Tanglao@bryght.com’s picture

Title: how do you get a newline in a print statement? » CVS Missing dript.module? WAS:how do you get a newline in a print statement?

i did a CVS update and dript.module wasn't updated:

[root@roland modules]# cd dript
[root@roland dript]# cvs update
cvs update: Updating .
cvs update: Updating lisp
cvs update: Updating lisp/func

Will let you know how testing works out

chelahmy’s picture

StatusFileSize
new66.06 KB

Maybe need to give the cvs some more times. I checked from here that dript is already updated. Last week it made me wait 2 days before the tar ball was created. Or you may try the attached dript.zip.

Roland Tanglao@bryght.com’s picture

Status: Active » Closed (fixed)

The break tag <br /> works! the problem with CVS is not a problem. you are using the HEAD instead of tagging it Drupal 5.