Modifier and Type | Method and Description |
---|---|
SourceFormatter |
Source.getSourceFormatter()
Formats the HTML source by laying out each non-inline-level element on a new line with an appropriate indent.
|
SourceFormatter |
SourceFormatter.setCollapseWhiteSpace(boolean collapseWhiteSpace)
Sets whether white space in the text between the tags is to be collapsed.
|
SourceFormatter |
SourceFormatter.setIndentAllElements(boolean indentAllElements)
Sets whether all elements are to be indented, including inline-level elements and those with preformatted contents.
|
SourceFormatter |
SourceFormatter.setIndentString(java.lang.String indentString)
Sets the string to be used for indentation.
|
SourceFormatter |
SourceFormatter.setNewLine(java.lang.String newLine)
Sets the string to be used to represent a newline in the output.
|
SourceFormatter |
SourceFormatter.setTidyTags(boolean tidyTags)
Sets whether the original text of each tag is to be replaced with the output from its
Tag.tidy() method. |