@Test public void testSetIndent() {

    Document doc = Jsoup.parse("<div><p>Hello\nthere</p></div>");
    doc.outputSettings().indentAmount(0);
    assertEquals("<html>\n<head></head>\n<body>\n<div>\n<p>Hello there</p>\n</div>\n</body>\n</html>", doc.html());
}