Index: openacs-4/packages/acs-tcl/tcl/text-html-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/text-html-procs.tcl,v diff -u -r1.27 -r1.28 --- openacs-4/packages/acs-tcl/tcl/text-html-procs.tcl 7 Nov 2003 13:03:46 -0000 1.27 +++ openacs-4/packages/acs-tcl/tcl/text-html-procs.tcl 7 Nov 2003 17:35:42 -0000 1.28 @@ -1401,7 +1401,7 @@ # ##### -ad_proc string_truncate { +ad_proc -public string_truncate { {-len 200} {-format html} {-no_format:boolean} @@ -1414,6 +1414,9 @@ HTML tags are closed. Otherwise, it's converted to text using ad_html_to_text. + Should always be called as string_truncate [-flags ...] -- string + since otherwise strings which start with a - will treated as missing arguments. + @param len The lenght to truncate to. Defaults to parameter TruncateDescriptionLength. @param format html or text. @param no_format causes hyperlink tags not to get listed at the end of the output.