2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-31 14:01:59 +00:00

Add missing \f support for JSON string encoder

This commit is contained in:
Jay Berkenbilt 2022-01-17 18:38:12 -05:00
parent aa0a379b37
commit b9af421ef7
3 changed files with 7 additions and 4 deletions

View File

@ -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;

View File

@ -1653,8 +1653,8 @@
"99 0 R": 46,
"trailer": {
"/ID": [
"Õ+\u000c\u0017Â\u0016Pib®gC¯ì&\u000f",
"Õ+\u000c\u0017Â\u0016Pib®gC¯ì&\u000f"
"Õ+\f\u0017Â\u0016Pib®gC¯ì&\u000f",
"Õ+\f\u0017Â\u0016Pib®gC¯ì&\u000f"
],
"/Root": "1 0 R",
"/Size": 109

View File

@ -1651,8 +1651,8 @@
"99 0 R": 45,
"trailer": {
"/ID": [
"Õ+\u000c\u0017Â\u0016Pib®gC¯ì&\u000f",
"Õ+\u000c\u0017Â\u0016Pib®gC¯ì&\u000f"
"Õ+\f\u0017Â\u0016Pib®gC¯ì&\u000f",
"Õ+\f\u0017Â\u0016Pib®gC¯ì&\u000f"
],
"/Root": "1 0 R",
"/Size": 108