Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make JSON formatter conserve escape sequences #36538

Merged
merged 1 commit into from
Dec 31, 2019

Conversation

Qrox
Copy link
Contributor

@Qrox Qrox commented Dec 29, 2019

Summary

SUMMARY: Build "Made JSON formatter conserve escape sequences"

Purpose of change

Currently the JSON formatter outputs string values by reading from JsonIn and writing to JsonOut, which causes escape sequences in string values to be converted to the respective characters. This is undesirable if the escape sequence is intended to improve readability, for example in #36535.

Describe the solution

Changed the code of the JSON formatter to output string values as written in the input. Also added an option to the CMake list for building the JSON formatter.

Testing

Ran the JSON formatter locally on the changes in #36535 and the escape sequences were correctly conserved.

@curstwist curstwist added [C++] Changes (can be) made in C++. Previously named `Code` Code: Build Issues regarding different builds and build environments labels Dec 29, 2019
@ZhilkinSerg ZhilkinSerg merged commit 566392c into CleverRaven:master Dec 31, 2019
@Qrox Qrox deleted the conserve-escape-sequence branch January 2, 2020 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Build Issues regarding different builds and build environments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants