View/Edit #52:list2html description2html

Switch to edit mode.

Name(s): list2html description2html
1:  "$html_utils:list2html({MOO text}) => {HTML equivalent text}"
2:  "  This is better than displaying PRE tags around the MOO list, because the resulting list"
3:  "  shows up in proportional-width font and it actually WRAPS."
4:  {text} = args
5:  for i in [1..length(text)]
6:    line = text[i]
7:    while (j = index(line, "  "))
8:      line[j..j + 1] = "  "
9:    endwhile
10:   line = line + "<BR>"
11:   text[i] = line
12: endfor
13: return text
14: "Last modified by Cecil (#7407) on Fri Mar 23 10:19:18 2001 MST."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Cecil (#7407)

You are not logged in.

[home | help | who | search | setup | code]