if ((format && indent == null) || (format && indent.length() == 0)) { indent = "  "; } // default, two spaces