Fix paragraphs after ruler
``` - - - foo ``` did not work because the empty line was swallowed when parsing the ruler.
This commit is contained in:
parent
68edb1b8fd
commit
7228740ed1
1 changed files with 1 additions and 1 deletions
2
smu.c
2
smu.c
|
@ -207,7 +207,7 @@ dolineprefix(const char *begin, const char *end, int newblock) {
|
||||||
fputs(lineprefix[i].before, stdout);
|
fputs(lineprefix[i].before, stdout);
|
||||||
if(lineprefix[i].search[l-1] == '\n') {
|
if(lineprefix[i].search[l-1] == '\n') {
|
||||||
fputc('\n', stdout);
|
fputc('\n', stdout);
|
||||||
return l;
|
return l - 1;
|
||||||
}
|
}
|
||||||
if(!(buffer = malloc(BUFSIZ)))
|
if(!(buffer = malloc(BUFSIZ)))
|
||||||
eprint("Malloc failed.");
|
eprint("Malloc failed.");
|
||||||
|
|
Loading…
Add table
Reference in a new issue