diff options
author | Ingo Bürk <admin@airblader.de> | 2017-03-08 22:26:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-08 22:26:33 +0100 |
commit | 09c758eed5c1d541f33c72351eef39517fad0126 (patch) | |
tree | 3892ce35ae0a09eb7380dec9eddd42e34abc3a89 /src/output.c | |
parent | 554db9fcc1f92d480a99d2d1e06d2285e4e4738f (diff) | |
parent | eee4ace092c21a82230c21afcff4d17a3f497b52 (diff) |
Merge pull request #208 from stapelberg/warning
remove useless checks (we use char, not unsigned char)
Diffstat (limited to 'src/output.c')
-rw-r--r-- | src/output.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/output.c b/src/output.c index 1c8c415..663700e 100644 --- a/src/output.c +++ b/src/output.c @@ -111,12 +111,11 @@ void maybe_escape_markup(char *text, char **buffer) { default: if ((0x1 <= *text && *text <= 0x8) || (0xb <= *text && *text <= 0xc) || - (0xe <= *text && *text <= 0x1f) || - (0x7f <= *text && *text <= 0x84) || - (0x86 <= *text && *text <= 0x9f)) + (0xe <= *text && *text <= 0x1f)) { *buffer += sprintf(*buffer, "&#x%x;", *text); - else + } else { *(*buffer)++ = *text; + } break; } } |