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

Improve prettiness of printing HTML attributes by DocPretty

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      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

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

              Dates

              Created:
              Updated:
              Resolved: