diff options
| author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-07-03 06:07:22 +0200 | 
|---|---|---|
| committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-07-03 06:07:22 +0200 | 
| commit | c23d58aaec79938f29cdac8336d4dcd46cc346ab (patch) | |
| tree | 471840343510bc2c9c58a8fc52b0b6f2c2023efe | |
| parent | b431f79db6deb75229748f80a3e9e448b6dacf31 (diff) | |
| download | blogc-c23d58aaec79938f29cdac8336d4dcd46cc346ab.tar.gz blogc-c23d58aaec79938f29cdac8336d4dcd46cc346ab.tar.bz2 blogc-c23d58aaec79938f29cdac8336d4dcd46cc346ab.zip | |
template-parser: minor fix
| -rw-r--r-- | src/template-parser.c | 2 | ||||
| -rw-r--r-- | tests/check_template_parser.c | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/src/template-parser.c b/src/template-parser.c index de6eb52..751fd9e 100644 --- a/src/template-parser.c +++ b/src/template-parser.c @@ -622,7 +622,7 @@ blogc_template_parse(const char *src, size_t src_len, blogc_error_t **err)      if (*err == NULL) {          if (state == TEMPLATE_BLOCK_IF_STRING_OPERAND)              *err = blogc_error_parser(BLOGC_ERROR_TEMPLATE_PARSER, src, src_len, -                start2 - 1, "Found an open double-quoted string."); +                start2, "Found an open double-quoted string.");          else if (if_count != 0)              *err = blogc_error_new_printf(BLOGC_ERROR_TEMPLATE_PARSER,                  "%d open 'ifdef' and/or 'ifndef' statements were not closed!", diff --git a/tests/check_template_parser.c b/tests/check_template_parser.c index d2d5e8d..9669638 100644 --- a/tests/check_template_parser.c +++ b/tests/check_template_parser.c @@ -761,7 +761,7 @@ test_template_parse_invalid_if_operand2(void **state)      assert_int_equal(err->type, BLOGC_ERROR_TEMPLATE_PARSER);      assert_string_equal(err->msg,          "Found an open double-quoted string.\n" -        "Error occurred near line 1, position 31: " +        "Error occurred near line 1, position 32: "          "{% block entry %}{% if BOLA == \"asd %}");      blogc_error_free(err);  } | 
