From 74c61753dfb73fa7899d1a1d682c3b4cf92a28b6 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Tue, 31 Mar 2020 17:12:59 -0400 Subject: fixed double spacing on empty lines --- badroff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/badroff.c b/badroff.c index 7dff4f1..123deba 100644 --- a/badroff.c +++ b/badroff.c @@ -144,6 +144,7 @@ char* typeset(void){ // wsend is last index with a piece of whitespace for (len = min(wsend,len-1); next[len] == ' '; len--); // check, within the string, behind the whitespace for a letter. + if (next[len] == '\n') len--; // "\n" shouldn't become "\n\n" // len should be *index of* last letter if (peekchrbuf(inbuf, wsend) == '\n') cont_typst = false; else cont_typst = true; -- cgit