aboutsummaryrefslogtreecommitdiff
path: root/badroff.c
diff options
context:
space:
mode:
Diffstat (limited to 'badroff.c')
-rw-r--r--badroff.c1
1 files changed, 1 insertions, 0 deletions
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;