aboutsummaryrefslogtreecommitdiff
path: root/badroff.c
diff options
context:
space:
mode:
Diffstat (limited to 'badroff.c')
-rw-r--r--badroff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/badroff.c b/badroff.c
index 385cd3c..9e6ba4c 100644
--- a/badroff.c
+++ b/badroff.c
@@ -172,7 +172,7 @@ char* foldlines(llnode* tail, size_t ct){
bool done = true; // if stays true, all strings are complete
llnode* orig = tail;
do { // check every string
- if (tail->str[i] == 0) tail->end = true;
+ if (!tail->end && tail->str[i] == 0) tail->end = true;
// ignore strings that have already finished
else if (!tail->end){
done = false;