Format settings file

See this answer https://stackoverflow.com/questions/22950542/pretty-printing-xml-with-jackson-library
This commit is contained in:
2025-02-17 22:28:53 -08:00
parent 15192e04e4
commit 6e86e660a7
3 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,7 @@ public class MainSettings {
XmlMapper xmlMapper = new XmlMapper();
xmlMapper.registerModule(new JavaTimeModule());
xmlMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
xmlMapper.enable(SerializationFeature.INDENT_OUTPUT);
try {
Path filePath = getSettingsFilePath();
Path directoryPath = filePath.getParent();