Index: openacs-4/packages/acs-tcl/tcl/test/html-conversion-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/test/html-conversion-procs.tcl,v diff -u -r1.9.2.1 -r1.9.2.2 --- openacs-4/packages/acs-tcl/tcl/test/html-conversion-procs.tcl 16 May 2009 23:54:18 -0000 1.9.2.1 +++ openacs-4/packages/acs-tcl/tcl/test/html-conversion-procs.tcl 17 May 2009 00:48:24 -0000 1.9.2.2 @@ -65,9 +65,9 @@ aa_equals "" [util_close_html_tags "Foobar is a very long word"] "Foobar is a very long word" - aa_equals "" [util_close_html_tags "Foobar is a very long word" 15] "Foobar is a" + aa_equals "" [util_close_html_tags "Foobar is a very long word" 15] "Foobar is a" - aa_equals "" [util_close_html_tags "Foobar is a very long word" 0 20 "..."] "Foobar is a very..." + aa_equals "" [util_close_html_tags "Foobar is a very long word" 0 20 "..."] "Foobar is a very..." } @@ -81,7 +81,7 @@ set string "What?\nNever mind, buddy" aa_equals "" [ad_html_text_convert -from "text/enhanced" -to "text/html" -truncate_len 14 -- $string] \ - [ad_enhanced_text_to_html "What?\nNever..."] + [ad_enhanced_text_to_html "What?\nNever..."] # The string is longer in plaintext, because the "_" symbol to denote italics is counted as well. aa_equals "" [ad_html_text_convert -from "text/enhanced" -to "text/plain" -truncate_len 15 -- $string] "What?\n_Never..." @@ -105,7 +105,7 @@ set string "What?\nNever mind, buddy" aa_equals "" [ad_html_text_convert -from "text/fixed-width" -to "text/html" -truncate_len 14 -- $string] \ - "
What?\nNever
..." + "
What?\nNever
..." aa_equals "" [ad_html_text_convert -from "text/fixed-width" -to "text/plain" -truncate_len 14 -- $string] \ "What?\nNever..." @@ -118,7 +118,7 @@ set string "What?
Never mind, buddy" aa_equals "" [ad_html_text_convert -from "text/html" -to "text/html" -truncate_len 14 -- $string] \ - "What?
Never..." + "What?
Never..." aa_equals "" [ad_html_text_convert -from "text/html" -to "text/plain" -truncate_len 15 -- $string] \ "What?\n_Never..."