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

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

Commit messages:
 - fix bug related to line breaks in json

Changes: https://git.openjdk.org/jdk/pull/24202/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24202&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8351332
  Stats: 85 lines in 2 files changed: 84 ins; 0 del; 1 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

Reply via email to