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.15 -r1.16 --- openacs-4/packages/acs-tcl/tcl/test/html-conversion-procs.tcl 18 Jul 2018 17:26:05 -0000 1.15 +++ openacs-4/packages/acs-tcl/tcl/test/html-conversion-procs.tcl 18 Jul 2018 18:54:23 -0000 1.16 @@ -1,5 +1,5 @@ ad_library { - + Tests that deal with the html parsing procs of openacs. @creation-date 15 November 2003 @@ -77,9 +77,9 @@ #---------------------------------------------------------------------- # from text/enhanced #---------------------------------------------------------------------- - + 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..."] @@ -105,35 +105,35 @@ #---------------------------------------------------------------------- set string "What?\nNever mind, buddy" - + aa_equals "" [ad_html_text_convert -from "text/plain" -to "text/html" -truncate_len 14 -- $string] \ "What?
\nNever..." - + aa_equals "" [ad_html_text_convert -from "text/plain" -to "text/plain" -truncate_len 14 -- $string] \ "What?\nNever..." - + #---------------------------------------------------------------------- # from text/fixed-width #---------------------------------------------------------------------- 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
..." - + aa_equals "" [ad_html_text_convert -from "text/fixed-width" -to "text/plain" -truncate_len 14 -- $string] \ "What?\nNever..." - + #---------------------------------------------------------------------- # from text/html #---------------------------------------------------------------------- set string "What?
Never mind, buddy" - + aa_equals "" [ad_html_text_convert -from "text/html" -to "text/html" -truncate_len 14 -- $string] \ "What?
Never..." - + aa_equals "" [ad_html_text_convert -from "text/html" -to "text/plain" -truncate_len 15 -- $string] \ "What?\n_Never..." @@ -276,7 +276,7 @@ set html {} set result [ad_html_text_convert -from text/html -to text/plain $html] - + aa_equals "Standard HTML Comments cleaned $result" $result "" set html { } set result [ad_html_text_convert -from text/html -to text/plain $html] - + aa_equals "MS Word Comments cleaned $result" $result "" set html {Regular Text