RFR: 8351332: Line breaks in search tag descriptions corrupt JSON search index

Nizar Benalla nbenalla at openjdk.org
Tue Mar 25 10:06:18 UTC 2025


On Mon, 24 Mar 2025 16:39:02 GMT, Chen Liang <liach at openjdk.org> wrote:

>> I thought about it but that may not be necessary because the other json keys (`l`, `h`, `u`) cannot have whitespace in them.
>> 
>> I'm not opposed to handing whitespace in an `escapeQuotesAndWhitespace` method though.
>
> 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.

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

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


More information about the javadoc-dev mailing list