Skip to content

Commit

Permalink
Remove parameter "prettyPrinting"
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Jun 2, 2022
1 parent 2cb7aff commit f8d05f0
Showing 1 changed file with 0 additions and 18 deletions.
Expand Up @@ -93,24 +93,6 @@ public String getArrayMarker() {
return arrayMarker;
}

/**
* Flags whether the data should be pretty printed.
*
* @param prettyPrinting true if the data should be pretty printed
*/
public void setPrettyPrinting(final boolean prettyPrinting) {
yamlGenerator.setPrettyPrinter(prettyPrinting ? new DefaultPrettyPrinter((SerializableString) null) : null);
}

/**
* Checks whether to pretty print.
*
* @return true if the data should be pretty printed
*/
public boolean getPrettyPrinting() {
return yamlGenerator.getPrettyPrinter() != null;
}

/**
* By default YAML output does only have escaping where it is strictly
* necessary. This is recommended in the most cases. Nevertheless it can
Expand Down

0 comments on commit f8d05f0

Please sign in to comment.