ExternalSpecsWriter should ignore white-space differences in spec titles

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 21
    • Affects Version/s: 21
    • Component/s: tools
    • None

      ExternalSpecsWriter currently requires an exact match for titles.

      Given recent usage of `@spec` has shown use of long titles that
      generally require line-wrapping, we should soften the check to
      ignore whitespace differences, perhaps by normalizing it in
      `checkUniqueItems`.

      OLD:
                  if (ii.getDocTree() instanceof SpecTree st) {
                      String url = st.getURL().toString();
                      String title = st.getTitle().toString();

      NEW:
                      String title = st.getTitle().toString().replaceAll("\\s+", " ");

            Assignee:
            Jonathan Gibbons
            Reporter:
            Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: