summaryrefslogtreecommitdiffstatshomepage
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
commitbdd57b0f6e96851f88fd7cd70c4267e348d46308 (patch)
tree634b490c3b4108df1176f0d363895baa53bb25ec /man_term.c
parent1ca4ada58f22986d7f95e7c5e06036d223771182 (diff)
downloadmandoc-bdd57b0f6e96851f88fd7cd70c4267e348d46308.tar.gz
mandoc-bdd57b0f6e96851f88fd7cd70c4267e348d46308.tar.zst
mandoc-bdd57b0f6e96851f88fd7cd70c4267e348d46308.zip
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/man_term.c b/man_term.c
index b6e4b004..a37fbeaa 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,6 +1,6 @@
-/* $Id: man_term.c,v 1.97 2011/01/12 15:23:25 kristaps Exp $ */
+/* $Id: man_term.c,v 1.98 2011/01/16 20:12:45 schwarze Exp $ */
/*
- * 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);