summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-22 13:36:25 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-22 13:36:25 +0000
commit802106a6f9d58bef3c98f97d404778e8f57c4406 (patch)
tree72dcecdef1497e312ad5af2347a0a5a5d93cbf85
parent4c2b73111562cd3b6e5744162ecbd5ca4d045661 (diff)
downloadmandoc-802106a6f9d58bef3c98f97d404778e8f57c4406.tar.gz
mandoc-802106a6f9d58bef3c98f97d404778e8f57c4406.tar.zst
mandoc-802106a6f9d58bef3c98f97d404778e8f57c4406.zip
Have `nf' and `fi' flush lines. This is necessary or the LITERAL will
be meaningless when invoked within a non-flushing context. This based on a formatting bug report submitted by Jonathon Gray (jsg@) via Christian Weisgerber (naddy@).
-rw-r--r--man_term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index e2cb76c0..7e792be2 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.80 2010/07/13 23:53:20 schwarze Exp $ */
+/* $Id: man_term.c,v 1.81 2010/07/22 13:36:25 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -252,6 +252,7 @@ static int
pre_fi(DECL_ARGS)
{
+ term_newln(p);
mt->fl &= ~MANT_LITERAL;
return(1);
}
@@ -262,6 +263,7 @@ static int
pre_nf(DECL_ARGS)
{
+ term_newln(p);
mt->fl |= MANT_LITERAL;
return(MAN_Vb != n->tok);
}