From e703ef3d2575f297baf68db559a4a789236f5e02 Mon Sep 17 00:00:00 2001 From: Michael Sweet Date: Tue, 6 Jun 2017 14:15:01 -0400 Subject: [PATCH] Fix header parsing bug. --- doc/mxml.man | 2 +- mmd.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/mxml.man b/doc/mxml.man index 75a7691..4d79ff9 100644 --- a/doc/mxml.man +++ b/doc/mxml.man @@ -1,4 +1,4 @@ -.TH mxml 3 "Mini-XML API" "05/31/17" "Mini-XML API" +.TH mxml 3 "Mini-XML API" "06/06/17" "Mini-XML API" .SH NAME mxml \- Mini-XML API .SH INCLUDE FILE diff --git a/mmd.c b/mmd.c index acacd86..0730a9b 100644 --- a/mmd.c +++ b/mmd.c @@ -579,6 +579,9 @@ mmdLoadFile(FILE *fp) /* I - File to load */ type = MMD_TYPE_PARAGRAPH; } + + if (current->type != MMD_TYPE_BLOCK_QUOTE) + current = doc; } else if (!block) {