summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2013-12-24 22:08:24 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2013-12-24 22:08:24 +0000
commit30714f9bb481c1e1561dec022fe5765edc6afbbd (patch)
treed6316f2641a711ffc9f0ee94ee028ed8f28bf3fd /usr.bin
parenteff850f6b01948292cc1c95477e6d38e8ea1f7d8 (diff)
Implement SYNOPSIS .Fn indentation for -Tman.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mandoc/mdoc_man.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c
index 3798dea7318..2cc23418785 100644
--- a/usr.bin/mandoc/mdoc_man.c
+++ b/usr.bin/mandoc/mdoc_man.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_man.c,v 1.53 2013/12/24 20:45:21 schwarze Exp $ */
+/* $Id: mdoc_man.c,v 1.54 2013/12/24 22:08:23 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -1087,6 +1087,9 @@ pre_fn(DECL_ARGS)
if (NULL == n)
return(0);
+ if (MDOC_SYNPRETTY & n->flags)
+ print_block(".HP 4n", MMAN_nl);
+
font_push('B');
print_node(meta, n);
font_pop();
@@ -1107,7 +1110,7 @@ post_fn(DECL_ARGS)
print_word(")");
if (MDOC_SYNPRETTY & n->flags) {
print_word(";");
- outflags |= MMAN_br;
+ outflags |= MMAN_PP;
}
}