smu

Simple markup processor
git clone https://git.sinitax.com/codemadness/smu
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 7228740ed1e3b14d19744cde41655c21e2e84035
parent 68edb1b8fdf4596a379712264e23d6412ff41ddb
Author: Karl Bartel <karl42@gmail.com>
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:
Msmu.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 newblock) { 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.");