private String flattenComment(String string){
  StringBuffer buffer=new StringBuffer(string.length() + 20);
  boolean skipAdjacentLineSeparator=true;
  for (int i=0; i < string.length(); i++) {
    char c=string.charAt(i);
    if (c == '\r' || c == '\n') {
      if (!skipAdjacentLineSeparator)       buffer.append(Policy.bind("separator"));
      skipAdjacentLineSeparator=true;
    }
 else {
      buffer.append(c);
      skipAdjacentLineSeparator=false;
    }
  }
  return buffer.toString();
}

private String flattenComment ( String string ) { StringBuffer buffer = new StringBuffer ( string . length ( ) + 20 ) ; boolean skipAdjacentLineSeparator = true ; for ( int i = 0 ; i < string . length ( ) ; i ++ ) { char c = string . charAt ( i ) ; if ( c == '\r' || c == '\n' ) { if ( ! skipAdjacentLineSeparator ) buffer . append ( Policy . bind ( "separator" ) ) ; skipAdjacentLineSeparator = true ; } else { buffer . append ( c ) ; skipAdjacentLineSeparator = false ; } } return buffer . toString ( ) ; }
flatten the given string so it contains no more line breaks
