Index: openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl 29 Aug 2001 21:22:48 -0000 1.3 +++ openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl 25 Jun 2002 18:19:44 -0000 1.4 @@ -451,19 +451,26 @@ if { [llength $doc_elements(switches)] > 0 } { append out "
\"$default_values($switch)\"
)"
- } elseif { ![lsearch $flags($switch) "required"] >= 0 } {
- append out " (optional)"
- }
- if { [info exists params($switch)] } {
- append out " - $params($switch)"
- }
- append out "\"$default_values($switch)\"
)"
+ }
+
+ if { [lsearch $flags($switch) "required"] >= 0 } {
+ append out " (required)"
+ } else {
+ append out " (optional)"
+ }
+
+ if { [info exists params($switch)] } {
+ append out " - $params($switch)"
+ }
+ append out "