On Tue, 25 Mar 2025 10:03:01 GMT, Nizar Benalla <nbena...@openjdk.org> wrote:

>> I think we should have one that escapes spaces and another that fails on 
>> spaces to replace the current escapeQuotes.
>
> Apologies. Whitespace is indeed allowed in certain keys, I thought that the 
> Labels would mostly be references (links) but titles and headers are also 
> included in the Index files.

One thing I noticed is that we have this kind of `"\\s+"` to `" "` whitespace 
normalization in other related places, notably in `IndexTaglet.java` and 
`SpecTaglet.java`. Would it make sense to unify the functionality somewhere 
there, and do it before passing the strings over to `IndexItem`?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/24202#discussion_r2011827432

Reply via email to