diff options
-rw-r--r-- | src/content-parser.c | 3 | ||||
-rw-r--r-- | tests/check_content_parser.c | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/content-parser.c b/src/content-parser.c index f5e3aec..e636636 100644 --- a/src/content-parser.c +++ b/src/content-parser.c @@ -374,6 +374,9 @@ blogc_content_parse_inline(const char *src) current += 1; } } + else { + sb_string_append_c(rv, c); + } break; case '&': diff --git a/tests/check_content_parser.c b/tests/check_content_parser.c index bc21317..d9d2528 100644 --- a/tests/check_content_parser.c +++ b/tests/check_content_parser.c @@ -117,7 +117,7 @@ test_content_parse(void **state) "yay\n" "\n" "**bola**\n" - "-- foo\n" + "-- foo-bar\n" "--- bar\n" "\n" "-- asd\n" @@ -157,7 +157,7 @@ test_content_parse(void **state) "<p>guda\n" "yay</p>\n" "<p><strong>bola</strong>\n" - "— foo\n" + "— foo-bar\n" "– bar</p>\n" "<p>— asd</p>\n" "<p>– lol</p>\n"); @@ -205,7 +205,7 @@ test_content_parse_crlf(void **state) "yay\r\n" "\r\n" "**bola**\r\n" - "-- foo\r\n" + "-- foo-bar\r\n" "--- bar\r\n" "\r\n" "-- asd\r\n" @@ -245,7 +245,7 @@ test_content_parse_crlf(void **state) "<p>guda\r\n" "yay</p>\r\n" "<p><strong>bola</strong>\r\n" - "— foo\r\n" + "— foo-bar\r\n" "– bar</p>\r\n" "<p>— asd</p>\r\n" "<p>– lol</p>\r\n"); |