diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-07-09 21:36:01 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-07-09 21:36:01 -0300 |
commit | 8aaa346994fe87ce0badfd3ac0c2ee302c86716c (patch) | |
tree | 8e48f94aa054cdce11caf09e0517cec2b5f8d840 /src | |
parent | ad7d6cb83a242fe337e9ca2f69a9549f6abd0485 (diff) | |
download | blogc-8aaa346994fe87ce0badfd3ac0c2ee302c86716c.tar.gz blogc-8aaa346994fe87ce0badfd3ac0c2ee302c86716c.tar.bz2 blogc-8aaa346994fe87ce0badfd3ac0c2ee302c86716c.zip |
content-parser: fixed start_state bug.
Diffstat (limited to 'src')
-rw-r--r-- | src/content-parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content-parser.c b/src/content-parser.c index 8821a17..e5bb16c 100644 --- a/src/content-parser.c +++ b/src/content-parser.c @@ -193,11 +193,11 @@ blogc_content_parse_inline(const char *src) break; } if (state == LINK_CLOSED || state == LINK_IMAGE) { + if (state == LINK_CLOSED) + start_state = current; state = LINK_TEXT; start = current + 1; open_bracket = 0; - if (state == LINK_CLOSED) - start_state = current; break; } if (state == LINK_TEXT) { |