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

Nizar Benalla nbenalla at openjdk.org
Wed Mar 26 13:04:06 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:

  feedback: add javadoc to `normalizeWhitespace`

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/24202/files
  - new: https://git.openjdk.org/jdk/pull/24202/files/3e040204..6942c9da

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24202&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24202&range=01-02

  Stats: 5 lines in 1 file changed: 5 ins; 0 del; 0 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