Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8252172

Improve prettiness of printing HTML attributes by DocPretty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • tools
    • None
    • b14

      Multiple attributes should be separated by whitespace:

      @@ -497,7 +492,7 @@ public class DocPretty implements DocTreeVisitor<Void,Void> {
                   List<? extends DocTree> attrs = node.getAttributes();
                   if (!attrs.isEmpty()) {
                       print(" ");
      - print(attrs);
      + print(attrs, " ");
                       DocTree last = node.getAttributes().get(attrs.size() - 1);
                       if (node.isSelfClosing() && last instanceof AttributeTree
                               && ((AttributeTree) last).getValueKind() == ValueKind.UNQUOTED)

            prappo Pavel Rappo (Inactive)
            prappo Pavel Rappo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: