Skip to content

Commit

Permalink
json: dont cquote 3DSOLID.acis_data
Browse files Browse the repository at this point in the history
they are chunked by 256 max, not encoded, and without any
to be escaped chars
  • Loading branch information
rurban committed Dec 5, 2023
1 parent c21da5c commit 76a574c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/out_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -1602,9 +1602,8 @@ json_3dsolid (Bit_Chain *restrict dat, const Dwg_Object *restrict obj,
// and skip the final ^M
if ((*p == '\r' || *p == '\n') && p - s < 256)
{
FIRSTPREFIX fprintf (
dat->fh, "\"%s\"",
json_cquote (buf, s, p - s, dat->codepage));
FIRSTPREFIX fprintf (dat->fh, "\"%.*s\"", (int)(p - s), s);
// json_cquote (buf, s, p - s, dat->codepage));
if (*p == '\r' && *(p + 1) == '\n')
p++;
s = p + 1;
Expand Down

0 comments on commit 76a574c

Please sign in to comment.