fixed duplicated reference in header-only files, #66, #67
authorMichael Göhler <somebody.here@gmx.de>
Fri, 26 Dec 2014 20:44:18 +0000 (21:44 +0100)
committerMichael Göhler <somebody.here@gmx.de>
Fri, 26 Dec 2014 20:44:18 +0000 (21:44 +0100)
src/parser.c

index 5b08be4..b400610 100644 (file)
@@ -192,6 +192,10 @@ deck_t *markdown_load(FILE *input) {
             // adjust counts
             deck->headers += hc;
             deck->slide->lines -= hc;
+        } else {
+
+            // remove header from deck
+            deck->header = NULL;
         }
     }