aboutsummaryrefslogtreecommitdiffstats
path: root/src/content-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/content-parser.c')
-rw-r--r--src/content-parser.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/content-parser.c b/src/content-parser.c
index 8bdd861..8e98405 100644
--- a/src/content-parser.c
+++ b/src/content-parser.c
@@ -1118,8 +1118,14 @@ param_end:
if (c == '\n' || c == '\r' || is_last) {
// FIXME: handle errors in the rest of the parser.
blogc_error_t *err = NULL;
- char *rv_d = blogc_directive_loader(directive_name,
- directive_argument, directive_params, &err);
+ blogc_directive_ctx_t *ctx = b_malloc(
+ sizeof(blogc_directive_ctx_t));
+ ctx->name = directive_name;
+ ctx->argument = directive_argument;
+ ctx->params = directive_params;
+ ctx->eol = line_ending;
+ char *rv_d = blogc_directive_loader(ctx, &err);
+ free(ctx);
blogc_error_print(err);
if (rv_d != NULL)
b_string_append(rv, rv_d);