RFR: 8351332: Line breaks in search tag descriptions corrupt JSON search index
Hannes Wallnöfer
hannesw at openjdk.org
Tue Mar 25 10:53:18 UTC 2025
On Tue, 25 Mar 2025 10:03:01 GMT, Nizar Benalla <nbenalla at 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
More information about the javadoc-dev
mailing list