/**
* Test text preceded or followed by whitespace returns just text.
*/
public void testCollapsed3 ()
{
StringBean sb;
sb = new StringBean ();
sb.setLinks (false);
sb.setReplaceNonBreakingSpaces (true);
sb.setCollapse (false);
check (sb, "<html><head></head><body>x </body></html>", "x ");
check (sb, "<html><head></head><body>x\t\t</body></html>", "x\t\t");
check (sb, "<html><head></head><body>x \t\t</body></html>", "x \t\t");
check (sb, "<html><head></head><body>x\t \t</body></html>", "x\t \t");
check (sb, "<html><head></head><body>x\t\t </body></html>", "x\t\t ");
sb.setCollapse (true);
check (sb, "<html><head></head><body>x </body></html>", "x");
check (sb, "<html><head></head><body>x\t\t</body></html>", "x");
check (sb, "<html><head></head><body>x \t\t</body></html>", "x");
check (sb, "<html><head></head><body>x\t \t</body></html>", "x");
check (sb, "<html><head></head><body>x\t\t </body></html>", "x");