diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-04 22:16:27 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-04 22:16:27 +0000 |
commit | 7f67988eac2d1c3957c780d882706906cbb3b441 (patch) | |
tree | b4526ffa0e17b6ebc86b96b943b82f6375387e0a /mdoc_html.c | |
parent | 67a51824265c8e0d0f41e8cacb1714e5671c7053 (diff) | |
download | mandoc-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.c | 5 |
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; |