Vector showPreTagText(String text,int align){
  Vector comps=new Vector();
  if ((text == null) || (text.equals(""))) {
    return comps;
  }
  String line="";
  for (int c=0; c < text.length(); c++) {
    char ch=text.charAt(c);
    if ((ch == 10) || (ch == 13)) {
      if (!line.equals("")) {
        comps.addElement(addString(line,align));
        newLine(align);
        line="";
      }
    }
 else {
      line+=ch;
    }
  }
  if (!line.equals("")) {
    comps.addElement(addString(line,align));
    newLine(align);
  }
  return comps;
}

Vector showPreTagText ( String text , int align ) { Vector comps = new Vector ( ) ; if ( ( text == null ) || ( text . equals ( "" ) ) ) { return comps ; } String line = "" ; for ( int c = 0 ; c < text . length ( ) ; c ++ ) { char ch = text . charAt ( c ) ; if ( ( ch == 10 ) || ( ch == 13 ) ) { if ( ! line . equals ( "" ) ) { comps . addElement ( addString ( line , align ) ) ; newLine ( align ) ; line = "" ; } } else { line += ch ; } } if ( ! line . equals ( "" ) ) { comps . addElement ( addString ( line , align ) ) ; newLine ( align ) ; } return comps ; }
shows a text that has been marked with the html pre tag which means the text will be displayed as is without truncation of white spaces and new lines when reaching the end of the screen .
