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.30.2.3 -r1.30.2.4 --- openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl 5 Sep 2015 14:52:37 -0000 1.30.2.3 +++ openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl 20 Sep 2015 15:40:15 -0000 1.30.2.4 @@ -105,7 +105,7 @@ regsub -all {\#.*$} $line "" line set line [string trim $line] if { $line ne "" } { - set has_contract_p [regexp {(^ad_page_contract\s)|( initialize )} $line match] + set has_contract_p [regexp {(^ad_(page|include)_contract\s)|( initialize )|} $line] break } } @@ -128,7 +128,7 @@ if {[regexp {^ad_page_contract documentation} $::errorInfo] } { array set doc_elements $error } - if { [info exists doc_elements] } { + if { [array exists doc_elements] } { return [array get doc_elements] } return [list] Index: openacs-4/packages/acs-api-browser/www/package-view.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-api-browser/www/package-view.tcl,v diff -u -r1.9.2.2 -r1.9.2.3 --- openacs-4/packages/acs-api-browser/www/package-view.tcl 10 Sep 2015 08:21:11 -0000 1.9.2.2 +++ openacs-4/packages/acs-api-browser/www/package-view.tcl 20 Sep 2015 15:40:15 -0000 1.9.2.3 @@ -79,8 +79,13 @@ set first_sentence [::apidoc::first_sentence [lindex $doc_elements(main) 0]] set view procs-file-view } else { - set first_sentence "" - set view procs-file-view + array set doc_elements [api_read_script_documentation $full_path] + if { [info exists doc_elements(main)] } { + set first_sentence [::apidoc::first_sentence [lindex $doc_elements(main) 0]] + } else { + set first_sentence "" + } + set view content-page-view } multirow append procs_files $path $full_path $first_sentence $view Index: openacs-4/packages/acs-tcl/lib/complain.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/lib/complain.adp,v diff -u -r1.6 -r1.6.2.1 --- openacs-4/packages/acs-tcl/lib/complain.adp 27 Oct 2014 16:40:04 -0000 1.6 +++ openacs-4/packages/acs-tcl/lib/complain.adp 20 Sep 2015 15:40:15 -0000 1.6.2.1 @@ -3,9 +3,9 @@

#acs-tcl.We_had# - #acs-tcl.some_problems# - #acs-tcl.a_problem# + #acs-tcl.some_problems##acs-tcl.a_problem# #acs-tcl.with_your_input# + (@context@)