summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-06-27 10:59:08 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-06-27 10:59:08 +0000
commitc457a3dd709b31cca2c555a898f410a2872ed079 (patch)
tree618e7b46f2b93b58f1571792b71ac0848f02b7a9
parent5fcd38d20de9ae7536b13281480efe6173c8e148 (diff)
sync to 1.7.20: .D1 and .Dl use 6-space, not 5-space indent;
while here, a lint fix n lb_pre
-rw-r--r--usr.bin/mandoc/mdoc_term.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c
index 45624869113..5c627bd48cd 100644
--- a/usr.bin/mandoc/mdoc_term.c
+++ b/usr.bin/mandoc/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.13 2009/06/21 20:49:33 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.14 2009/06/27 10:59:07 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1299,7 +1299,8 @@ termp_lb_pre(DECL_ARGS)
const char *lb;
assert(node->child && MDOC_TEXT == node->child->type);
- if ((lb = mdoc_a2lib(node->child->string))) {
+ lb = mdoc_a2lib(node->child->string);
+ if (lb) {
term_word(p, lb);
return(0);
}
@@ -1335,7 +1336,8 @@ termp_d1_pre(DECL_ARGS)
if (MDOC_BLOCK != node->type)
return(1);
term_newln(p);
- p->offset += (pair->offset = INDENT);
+ pair->offset = INDENT + 1;
+ p->offset += pair->offset;
return(1);
}