aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-04 22:16:27 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-04 22:16:27 +0000
commit7f67988eac2d1c3957c780d882706906cbb3b441 (patch)
treeb4526ffa0e17b6ebc86b96b943b82f6375387e0a /mdoc_html.c
parent67a51824265c8e0d0f41e8cacb1714e5671c7053 (diff)
downloadmandoc-7f67988eac2d1c3957c780d882706906cbb3b441.tar.gz
mandoc-7f67988eac2d1c3957c780d882706906cbb3b441.tar.zst
mandoc-7f67988eac2d1c3957c780d882706906cbb3b441.zip
Fixed `Fn' newline behaviour and added some regression tests to this
extent. Documented `Fn'. Please note the COMPATIBILITY note regarding historic groff.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index e3ae9d9a..41f7000d 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.74 2010/06/04 21:49:39 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.75 2010/06/04 22:16:27 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1584,7 +1584,8 @@ mdoc_fn_pre(MDOC_ARGS)
int sz, i;
struct roffsu su;
- if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags) {
+ /* NB: MDOC_LINE has no effect on this macro! */
+ if (SEC_SYNOPSIS == n->sec) {
SCALE_HS_INIT(&su, INDENT);
bufcat_su(h, "margin-left", &su);
su.scale = -su.scale;