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

Nizar Benalla nbenalla at openjdk.org
Wed Mar 26 13:04:10 UTC 2025


On Tue, 25 Mar 2025 11:40:35 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:

>> Please review this patch to fix an issue in the `tag-search-index.js` generation.
>> 
>> The problem was in the `toJSON()` method of `IndexItem`. When adding the description, it's using `escapeQuotes(description)` which only escapes backslashes and quotes, but doesn't normalize whitespace.
>> 
>> TIA
>
> Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision:
> 
>   move logic of normalizing whitespace to the common utils class

I've made a small update to add javadoc to the new method.

Thanks for reviewing, Chen and Hannes.

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

PR Comment: https://git.openjdk.org/jdk/pull/24202#issuecomment-2754308332
PR Comment: https://git.openjdk.org/jdk/pull/24202#issuecomment-2754318069


More information about the javadoc-dev mailing list