diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/DefaultGenerator.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/DefaultGenerator.java index a5944a06c02..4e3393c540e 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/DefaultGenerator.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/DefaultGenerator.java @@ -1012,6 +1012,7 @@ private com.github.jknack.handlebars.Template getHandlebars(String templateFile) templateLoader = new ClassPathTemplateLoader("/" + templateDir, ".mustache"); } final Handlebars handlebars = new Handlebars(templateLoader); + handlebars.prettyPrint(true); config.addHandlebarHelpers(handlebars); return handlebars.compile(templateFile); }