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

Improve prettiness of printing HTML attributes by DocPretty

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 16
    • 16
    • tools
    • None
    • b14

    Description

      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)

      Attachments

        Activity

          People

            prappo Pavel Rappo
            prappo Pavel Rappo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: