diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-03-05 19:46:40 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-03-05 19:46:40 +0100 |
commit | 1645987e132d063847aa95c0693570b44bb2d7d5 (patch) | |
tree | b3a517661b1e377734d584158094647796dcc34d /src | |
parent | de986bafd7d765e94059c0e88df93a352d85d7aa (diff) | |
download | blogc-1645987e132d063847aa95c0693570b44bb2d7d5.tar.gz blogc-1645987e132d063847aa95c0693570b44bb2d7d5.tar.bz2 blogc-1645987e132d063847aa95c0693570b44bb2d7d5.zip |
content-parser: fixed em/en-dash logic
Diffstat (limited to 'src')
-rw-r--r-- | src/content-parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content-parser.c b/src/content-parser.c index e636636..0a87fcb 100644 --- a/src/content-parser.c +++ b/src/content-parser.c @@ -366,11 +366,11 @@ blogc_content_parse_inline(const char *src) break; if (current < (src_len - 1) && src[current + 1] == '-') { if (current < (src_len - 2) && src[current + 2] == '-') { - sb_string_append(rv, "–"); + sb_string_append(rv, "—"); current += 2; } else { - sb_string_append(rv, "—"); + sb_string_append(rv, "–"); current += 1; } } |