summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-01-16 20:12:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-01-16 20:12:45 +0000
commit4043e37d694af94a270f16519fc2fec07e918b37 (patch)
treef92c55ce9734bbd6078c4788c316cc0daac431a5 /man_term.c
parent1f5d1452b312930a67ab95f63e3fba7c783eebd6 (diff)
downloadmandoc-4043e37d694af94a270f16519fc2fec07e918b37.tar.gz
When processing a blank text line, do not break out of text processing
into macro processing code. Fixing a regression introduced in 1.95, found because it caused segfaults in my regression suite. OK kristaps@
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man_term.c b/man_term.c
index eb2db570..5459bb4f 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,6 +1,6 @@
/* $Id$ */
/*
- * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
+ * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -864,7 +864,7 @@ print_man_node(DECL_ARGS)
*/
if ('\0' == *n->string) {
term_vspace(p);
- break;
+ return;
} else if (' ' == *n->string && MAN_LINE & n->flags)
term_newln(p);