@Test public void test1_lorem_ipsum() throws Exception { config.maxColumn=80; assertEquals(loadFeatureFile("feature-255-01-expected-when-max-column-80.adoc"),formatterToTest.format(loadFeatureFile("feature-255-01-origin.adoc"),config)); }
public String format(String origin, AsciiDoctorFormatterConfig config) { if (origin == null) { return ""; } List<AsciidocFormatBlock> blocks = blockScanner.scan(origin); StringBuilder sb = new StringBuilder(); for (AsciidocFormatBlock block : blocks) { handleBlock(block,config); sb.append(block.source); } return sb.toString(); }
AsciiDoctorFormatter { public String format(String origin, AsciiDoctorFormatterConfig config) { if (origin == null) { return ""; } List<AsciidocFormatBlock> blocks = blockScanner.scan(origin); StringBuilder sb = new StringBuilder(); for (AsciidocFormatBlock block : blocks) { handleBlock(block,config); sb.append(block.source); } return sb.toString(); } }
AsciiDoctorFormatter { public String format(String origin, AsciiDoctorFormatterConfig config) { if (origin == null) { return ""; } List<AsciidocFormatBlock> blocks = blockScanner.scan(origin); StringBuilder sb = new StringBuilder(); for (AsciidocFormatBlock block : blocks) { handleBlock(block,config); sb.append(block.source); } return sb.toString(); }  }
AsciiDoctorFormatter { public String format(String origin, AsciiDoctorFormatterConfig config) { if (origin == null) { return ""; } List<AsciidocFormatBlock> blocks = blockScanner.scan(origin); StringBuilder sb = new StringBuilder(); for (AsciidocFormatBlock block : blocks) { handleBlock(block,config); sb.append(block.source); } return sb.toString(); }  String format(String origin, AsciiDoctorFormatterConfig config); }
AsciiDoctorFormatter { public String format(String origin, AsciiDoctorFormatterConfig config) { if (origin == null) { return ""; } List<AsciidocFormatBlock> blocks = blockScanner.scan(origin); StringBuilder sb = new StringBuilder(); for (AsciidocFormatBlock block : blocks) { handleBlock(block,config); sb.append(block.source); } return sb.toString(); }  String format(String origin, AsciiDoctorFormatterConfig config);  }