Skip to content

Commit

Permalink
Fixed overzealous indenting in outerHtmlTail
Browse files Browse the repository at this point in the history
  • Loading branch information
jhy committed Jan 27, 2013
1 parent 3982ea1 commit d94f56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jsoup/nodes/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ void outerHtmlHead(StringBuilder accum, int depth, Document.OutputSettings out)
void outerHtmlTail(StringBuilder accum, int depth, Document.OutputSettings out) {
if (!(childNodes.isEmpty() && tag.isSelfClosing())) {
if (out.prettyPrint() && (!childNodes.isEmpty() && (
tag.formatAsBlock() || (out.outline() && childNodes.size()>1 || (childNodes.size()==1 && !(childNodes.get(0) instanceof TextNode)))
tag.formatAsBlock() || (out.outline() && (childNodes.size()>1 || (childNodes.size()==1 && !(childNodes.get(0) instanceof TextNode))))
)))
indent(accum, depth, out);
accum.append("</").append(tagName()).append(">");
Expand Down

0 comments on commit d94f56c

Please sign in to comment.