From 1605bf39ab342ea5d904fe96df81dd0f55bd3bcf Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 23 May 2016 02:38:22 +0200 Subject: content-parser: fixed DESCRIPTION variable. it is now built as a single line variable, that contains the full unparsed content of the first paragraph found in the source file, instead of just the first line of it. this also fixes a bug that prevented creating of DESCRIPTION variable, if the source file contained only a single line paragraph. --- src/content-parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/content-parser.h') diff --git a/src/content-parser.h b/src/content-parser.h index 148d5ed..85bd063 100644 --- a/src/content-parser.h +++ b/src/content-parser.h @@ -14,6 +14,7 @@ char* blogc_slugify(const char *str); char* blogc_htmlentities(const char *str); +char* blogc_fix_description(const char *paragraph); char* blogc_content_parse_inline(const char *src); bool blogc_is_ordered_list_item(const char *str, size_t prefix_len); char* blogc_content_parse(const char *src, size_t *end_excerpt, -- cgit v1.2.3-18-g5258