RFR: 8351332: Line breaks in search tag descriptions corrupt JSON search index [v2]
Nizar Benalla
nbenalla at openjdk.org
Tue Mar 25 11:40:35 UTC 2025
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/24202/files
- new: https://git.openjdk.org/jdk/pull/24202/files/a3ae59fe..3e040204
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=24202&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=24202&range=00-01
Stats: 11 lines in 5 files changed: 4 ins; 1 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/24202.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24202/head:pull/24202
PR: https://git.openjdk.org/jdk/pull/24202
More information about the javadoc-dev
mailing list