Class Formatting.LineFormatter

java.lang.Object
io.micronaut.openapi.generator.Formatting.LineFormatter
All Implemented Interfaces:
com.samskivert.mustache.Mustache.Lambda
Enclosing class:
Formatting

public static class Formatting.LineFormatter extends Object implements com.samskivert.mustache.Mustache.Lambda
A formatter that is responsible for removing extra empty lines in mustache files.
  • Constructor Details

    • LineFormatter

      public LineFormatter(int maxEmptyLines)
      Create the lambda.
      Parameters:
      maxEmptyLines - maximal empty lines.
  • Method Details

    • execute

      public void execute(com.samskivert.mustache.Template.Fragment fragment, Writer writer) throws IOException
      Specified by:
      execute in interface com.samskivert.mustache.Mustache.Lambda
      Throws:
      IOException