diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-01-18 00:38:12 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-01-30 19:11:03 +0100 |
commit | b9af421ef788b94fcbf18ecf702cec3ba9a018b7 (patch) | |
tree | 302acb7115800a00e9194c1918d0cd7e8181ce7d /libqpdf/JSON.cc | |
parent | aa0a379b37889caad022ec12fba76990b2e2e2d9 (diff) | |
download | qpdf-b9af421ef788b94fcbf18ecf702cec3ba9a018b7.tar.zst |
Add missing \f support for JSON string encoder
Diffstat (limited to 'libqpdf/JSON.cc')
-rw-r--r-- | libqpdf/JSON.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libqpdf/JSON.cc b/libqpdf/JSON.cc index c656bb14..a45dbd2e 100644 --- a/libqpdf/JSON.cc +++ b/libqpdf/JSON.cc @@ -181,6 +181,9 @@ JSON::encode_string(std::string const& str) case '\b': result += "\\b"; break; + case '\f': + result += "\\f"; + break; case '\n': result += "\\n"; break; |