public static String cleanTabs(String yaml){
  if (yaml.contains("\t")) {
    LOGGER.warn("Yaml contains a tab characters, automatically converting to {} spaces " + "(if they occur at the beginning of a sentence). This may cause parsing" + " errors, please reformat the Yaml to use spaces only.",TAB_AS_SPACES.length());
    List<String> lines=NEWLINE_SPLITTER.splitToList(yaml);
    StringBuilder sb=new StringBuilder();
    for (    String line : lines) {
      String cleanLine=replaceStartingTabsWithSpaces(line);
      sb.append(cleanLine);
      sb.append("\n");
    }
    return sb.toString();
  }
 else {
    return yaml;
  }
}

public static String cleanTabs ( String yaml ) { if ( yaml . contains ( "\t" ) ) { LOGGER . warn ( "Yaml contains a tab characters, automatically converting to {} spaces " + "(if they occur at the beginning of a sentence). This may cause parsing" + " errors, please reformat the Yaml to use spaces only." , TAB_AS_SPACES . length ( ) ) ; List < String > lines = NEWLINE_SPLITTER . splitToList ( yaml ) ; StringBuilder sb = new StringBuilder ( ) ; for ( String line : lines ) { String cleanLine = replaceStartingTabsWithSpaces ( line ) ; sb . append ( cleanLine ) ; sb . append ( "\n" ) ; } return sb . toString ( ) ; } else { return yaml ; } }
strips any tabs which are at the beginning on
