Switch to edit mode.
Name(s): format1: "Usage: this:format( LIST|STR text )"
2: ""
3: "Besides calling this:web_substitute, this also puts a BR at"
4: "the end of each line of a list of strings, or a single string."
5: {text} = args
6: if (length(args) == 1 && typeof(text) == $STR)
7: text = $string_utils:from_list(this:web_substitute({text})) + "<br>"
8: else
9: text = $list_utils:flatten(this:web_substitute(text))
10: for x in [1..length(text)]
11: text[x] = text[x] + "<br>"
12: endfor
13: endif
14: return text
15: "Compiled on Thu Feb 28 18:28:33 2002 EST by Wingy (#1163)"
16: "Last modified by Dax (#789) on Tue May 3 13:43:09 2005 MDT."