aboutsummaryrefslogtreecommitdiffstats
path: root/src/source-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/source-parser.c')
-rw-r--r--src/source-parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/source-parser.c b/src/source-parser.c
index aee5c23..db0792c 100644
--- a/src/source-parser.c
+++ b/src/source-parser.c
@@ -144,6 +144,8 @@ blogc_source_parse(const char *src, size_t src_len, blogc_error_t **err)
break;
case SOURCE_CONTENT_START:
+ if (c == '\n' || c == '\r')
+ break;
start = current;
state = SOURCE_CONTENT;
break;