summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-04 21:05:39 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-04 21:05:39 +0000
commit12bd5ba1acfc34cc1274b3b3d2c1a9e28978bb6e (patch)
tree3f52fef3639d5f03ff253146f32112017cc0ce7f /mdoc_html.c
parentcdd2b3c33fbd3e98ec382b355b933fe87e0bd605 (diff)
downloadmandoc-12bd5ba1acfc34cc1274b3b3d2c1a9e28978bb6e.tar.gz
mandoc-12bd5ba1acfc34cc1274b3b3d2c1a9e28978bb6e.tar.zst
mandoc-12bd5ba1acfc34cc1274b3b3d2c1a9e28978bb6e.zip
Fixed `Fd' to format in the right way. Found when confused by what the
hell `Fd' is supposed to do anyway (answer: it's a historical macro and we shouldn't be doing anything with it anyway).
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 76a7fe8c..4506e127 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.72 2010/06/03 13:44:36 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.73 2010/06/04 21:05:39 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -84,6 +84,7 @@ static void mdoc_dq_post(MDOC_ARGS);
static int mdoc_dq_pre(MDOC_ARGS);
static int mdoc_dv_pre(MDOC_ARGS);
static int mdoc_fa_pre(MDOC_ARGS);
+static void mdoc_fd_post(MDOC_ARGS);
static int mdoc_fd_pre(MDOC_ARGS);
static int mdoc_fl_pre(MDOC_ARGS);
static int mdoc_fn_pre(MDOC_ARGS);
@@ -158,7 +159,7 @@ static const struct htmlmdoc mdocs[MDOC_MAX] = {
{mdoc_ev_pre, NULL}, /* Ev */
{mdoc_ex_pre, NULL}, /* Ex */
{mdoc_fa_pre, NULL}, /* Fa */
- {mdoc_fd_pre, NULL}, /* Fd */
+ {mdoc_fd_pre, mdoc_fd_post}, /* Fd */
{mdoc_fl_pre, NULL}, /* Fl */
{mdoc_fn_pre, NULL}, /* Fn */
{mdoc_ft_pre, NULL}, /* Ft */
@@ -1510,21 +1511,19 @@ mdoc_fa_pre(MDOC_ARGS)
/* ARGSUSED */
+static void
+mdoc_fd_post(MDOC_ARGS)
+{
+
+ print_otag(h, TAG_BR, 0, NULL);
+}
+
+
+/* ARGSUSED */
static int
mdoc_fd_pre(MDOC_ARGS)
{
struct htmlpair tag;
- struct roffsu su;
-
- if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags) {
- if (n->next && MDOC_Fd != n->next->tok) {
- SCALE_VS_INIT(&su, 1);
- bufcat_su(h, "margin-bottom", &su);
- PAIR_STYLE_INIT(&tag, h);
- print_otag(h, TAG_DIV, 1, &tag);
- } else
- print_otag(h, TAG_DIV, 0, NULL);
- }
PAIR_CLASS_INIT(&tag, "macro");
print_otag(h, TAG_SPAN, 1, &tag);