Integrated: 8351332: Line breaks in search tag descriptions corrupt JSON search index
Nizar Benalla
nbenalla at openjdk.org
Wed Mar 26 13:04:12 UTC 2025
On Mon, 24 Mar 2025 14:41: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
This pull request has now been integrated.
Changeset: e2a461bd
Author: Nizar Benalla <nbenalla at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/e2a461bddeade1666fe15fb17cba8c9f4c5e7dab
Stats: 97 lines in 5 files changed: 92 ins; 0 del; 5 mod
8351332: Line breaks in search tag descriptions corrupt JSON search index
Reviewed-by: hannesw, liach
-------------
PR: https://git.openjdk.org/jdk/pull/24202
More information about the javadoc-dev
mailing list