Skip to content

Commit

Permalink
dxf: more MIF types in dxf_fixup_string
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Oct 5, 2024
1 parent 40c70ae commit 86c40df
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/out_dxf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1226,11 +1226,12 @@ cquote (char *restrict dest, const size_t len, const char *restrict src)
return d;
}

/* If opts 1:
/*
Splits overlong (len>250) lines into dxf 3 chunks ending with group dxf.
Only TFF sets opts=0, TV and TU to 1.
If opts 1:
quote \n => ^J
\M+xxxxx => \U+XXXX (shift-jis)
Splits overlong (len>255) lines into dxf 3 chunks ending with group dxf
only TFF sets opts=0, TV and TU to 1.
*/
static void
dxf_fixup_string (Bit_Chain *restrict dat, char *restrict str, const int opts,
Expand All @@ -1240,7 +1241,7 @@ dxf_fixup_string (Bit_Chain *restrict dat, char *restrict str, const int opts,
{
if (opts
&& (strchr (str, '\n') || strchr (str, '\r')
|| strstr (str, "\\M+1")))
|| strstr (str, "\\M+")))
{
static char *cbuf;
static char _sbuf[1024] = { 0 };
Expand Down

0 comments on commit 86c40df

Please sign in to comment.