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.31 -r1.32 --- openacs-4/packages/acs-tcl/tcl/text-html-procs.tcl 11 Dec 2003 21:39:56 -0000 1.31 +++ openacs-4/packages/acs-tcl/tcl/text-html-procs.tcl 17 Dec 2003 20:21:41 -0000 1.32 @@ -124,7 +124,7 @@ regsub -all {[ \t]*\n} $text "\n" text # Wrap P's around paragraphs - set text "

$text

" + set text "

$text

" regsub -all {([^\n\s])\n\n([^\n\s])} $text {\1

\2} text # Convert _single_ CRLF's to
's to preserve line breaks @@ -144,6 +144,12 @@ # Add line breaks to P tags regsub -all {

} $text "

\n" text + # Last

tag + set idx [string last "

" [string tolower $text]] + if { $idx != -1 } { + set text "[string range $text 0 [expr $idx-1]]

[string range $text [expr $idx+3] end]" + } + return $text }