From 7f67988eac2d1c3957c780d882706906cbb3b441 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 4 Jun 2010 22:16:27 +0000 Subject: Fixed `Fn' newline behaviour and added some regression tests to this extent. Documented `Fn'. Please note the COMPATIBILITY note regarding historic groff. --- mdoc_html.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mdoc_html.c') 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 * @@ -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; -- cgit v1.2.3