aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/JSON.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-18 00:38:12 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commitb9af421ef788b94fcbf18ecf702cec3ba9a018b7 (patch)
tree302acb7115800a00e9194c1918d0cd7e8181ce7d /libqpdf/JSON.cc
parentaa0a379b37889caad022ec12fba76990b2e2e2d9 (diff)
downloadqpdf-b9af421ef788b94fcbf18ecf702cec3ba9a018b7.tar.zst
Add missing \f support for JSON string encoder
Diffstat (limited to 'libqpdf/JSON.cc')
-rw-r--r--libqpdf/JSON.cc3
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;