summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Bartel <karl42@gmail.com>2019-10-02 13:03:36 +0200
committerEnno Boland <g@s01.de>2020-07-01 08:56:22 +0200
commit7228740ed1e3b14d19744cde41655c21e2e84035 (patch)
treee33395e3a3f5f8a6ca3a6949bedbe9a8bbf84f41
parent68edb1b8fdf4596a379712264e23d6412ff41ddb (diff)
Fix paragraphs after ruler
``` - - - foo ``` did not work because the empty line was swallowed when parsing the ruler.
-rw-r--r--smu.c2
1 files changed, 1 insertions, 1 deletions
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.");