Fix paragraphs after ruler - smu - smu - simple markup (Markdown) processor (fo… | |
git clone git://git.codemadness.org/smu | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 7228740ed1e3b14d19744cde41655c21e2e84035 | |
parent 68edb1b8fdf4596a379712264e23d6412ff41ddb | |
Author: Karl Bartel <[email protected]> | |
Date: Wed, 2 Oct 2019 13:03:36 +0200 | |
Fix paragraphs after ruler | |
``` | |
- - - | |
foo | |
``` | |
did not work because the empty line was swallowed when parsing the | |
ruler. | |
Diffstat: | |
M smu.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/smu.c b/smu.c | |
@@ -207,7 +207,7 @@ dolineprefix(const char *begin, const char *end, int newblo… | |
fputs(lineprefix[i].before, stdout); | |
if(lineprefix[i].search[l-1] == '\n') { | |
fputc('\n', stdout); | |
- return l; | |
+ return l - 1; | |
} | |
if(!(buffer = malloc(BUFSIZ))) | |
eprint("Malloc failed."); |