mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 01:38:07 +08:00
TL;DR: When retrieving the file content with localization scripts, normalize the line ending to LF. Issue: When a grdp file containing multi-line strings has CRLF line ending, the parser doesn't work because the IDS hash is calculated based on the content of the <message> tag, which expects LF line ending. The multi- line string ends up having a different expected hash, and the parser complains about it. Repro: Change line ending of front_end/coverage/coverage_strings.grdp to CRLF. Fix: Normalize line ending to LF when retrieving the file content. Change-Id: If3a33978724a4bf9635738c67ada211e5e996e30 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1895994 Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Mandy Chen <mandy.chen@microsoft.com>