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

Hannes Wallnöfer hannesw at openjdk.org
Wed Mar 26 13:04:07 UTC 2025


On Wed, 26 Mar 2025 13:00:43 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:
> 
>   feedback: add javadoc to `normalizeWhitespace`

Marked as reviewed by hannesw (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/24202#pullrequestreview-2717067178


More information about the javadoc-dev mailing list