Index: openacs-4/packages/xowiki/tcl/xowiki-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-procs.tcl,v diff -u -r1.542.2.146 -r1.542.2.147 --- openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 9 Mar 2022 17:11:24 -0000 1.542.2.146 +++ openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 21 Mar 2022 11:21:44 -0000 1.542.2.147 @@ -3642,7 +3642,8 @@ # array set "" {mime text/html text "" html "" keywords ""} set mime ${:mime_type} if {$mime eq "text/plain"} { - set result [next] + set f [open [:full_file_name] r]; set data [read $f]; close $f + set result [list text $data mime text/plain] } else { if {[info commands "::search::convert::binary_to_text"] ne ""} { set txt [search::convert::binary_to_text -filename [:full_file_name] -mime_type $mime]