From 7228740ed1e3b14d19744cde41655c21e2e84035 Mon Sep 17 00:00:00 2001 From: Karl Bartel Date: Wed, 2 Oct 2019 13:03:36 +0200 Subject: [PATCH] Fix paragraphs after ruler ``` - - - foo ``` did not work because the empty line was swallowed when parsing the ruler. --- smu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smu.c b/smu.c index b6d10fa..e58bcd4 100644 --- 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.");