@Test public void testHierarchyOfEmpty() { Document doc = Jsoup.parseBodyFragment("<div><p></p></div>"); m.manipulate(doc); assertTrue(doc.body().select("*").not("body").isEmpty()); }
@Override public void manipulate(Document document) { Element body = document.body(); while (!removeEmpty(body)) { } }
RemoveEmptyText implements ContentManipulator { @Override public void manipulate(Document document) { Element body = document.body(); while (!removeEmpty(body)) { } } }
RemoveEmptyText implements ContentManipulator { @Override public void manipulate(Document document) { Element body = document.body(); while (!removeEmpty(body)) { } }  }
RemoveEmptyText implements ContentManipulator { @Override public void manipulate(Document document) { Element body = document.body(); while (!removeEmpty(body)) { } }  @Override void manipulate(Document document); }
RemoveEmptyText implements ContentManipulator { @Override public void manipulate(Document document) { Element body = document.body(); while (!removeEmpty(body)) { } }  @Override void manipulate(Document document);  }