End list when indent is not reached

Otherwise
```
- foo
- bar
+ baz
```
will become a nested list
This commit is contained in:
Karl Bartel 2019-10-02 13:06:09 +02:00 committed by Enno Boland
parent 7228740ed1
commit 7fa950993c

2
smu.c
View file

@ -391,6 +391,8 @@ dolist(const char *begin, const char *end, int newblock) {
else else
break; break;
} }
else if (j < indent)
run = 0;
} }
ADDC(buffer, i) = *p; ADDC(buffer, i) = *p;
} }