Exemple #1
0
  public static String toMarkup(Example example, boolean prettyPrint, MarkupPrinter printer) {
    StringBuilder sb = new StringBuilder();
    if (example.hasChild()) sb.append(Cells.toMarkup(example.firstChild(), prettyPrint, printer));
    else sb.append(EMPTY);

    if (example.hasSibling()) {
      sb.append("\n");
      sb.append(toMarkup(example.nextSibling(), prettyPrint, printer));
    }
    return sb.toString();
  }