diff options
-rw-r--r-- | src/content-parser.c | 4 | ||||
-rw-r--r-- | tests/check_content_parser.c | 16 |
2 files changed, 10 insertions, 10 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; } } diff --git a/tests/check_content_parser.c b/tests/check_content_parser.c index d9d2528..b20f8d0 100644 --- a/tests/check_content_parser.c +++ b/tests/check_content_parser.c @@ -157,10 +157,10 @@ test_content_parse(void **state) "<p>guda\n" "yay</p>\n" "<p><strong>bola</strong>\n" - "— foo-bar\n" - "– bar</p>\n" - "<p>— asd</p>\n" - "<p>– lol</p>\n"); + "– foo-bar\n" + "— bar</p>\n" + "<p>– asd</p>\n" + "<p>— lol</p>\n"); free(html); } @@ -245,10 +245,10 @@ test_content_parse_crlf(void **state) "<p>guda\r\n" "yay</p>\r\n" "<p><strong>bola</strong>\r\n" - "— foo-bar\r\n" - "– bar</p>\r\n" - "<p>— asd</p>\r\n" - "<p>– lol</p>\r\n"); + "– foo-bar\r\n" + "— bar</p>\r\n" + "<p>– asd</p>\r\n" + "<p>— lol</p>\r\n"); free(html); } |