diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-01-01 13:35:30 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-01-01 13:35:30 +0000 |
commit | 1229fdd9d84784744b71813ed8b0845b20d4f2ee (patch) | |
tree | 910fe16abd594a977f7582d13da64db5dab06b4c /mdoc_html.c | |
parent | 47413dce678dda2ae975720bf472a4a00ecde62a (diff) | |
download | mandoc-1229fdd9d84784744b71813ed8b0845b20d4f2ee.tar.gz |
Documented `Fl' in mdoc.7.
Backed out stipulation that `Fl ""' is ignored: this is not the case in !OpenBSD groffs.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 719d9df5..e43d9809 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -659,25 +659,13 @@ mdoc_fl_pre(MDOC_ARGS) { struct htmlpair tag; + PAIR_CLASS_INIT(&tag, "flag"); + print_otag(h, TAG_SPAN, 1, &tag); + /* `Cm' has no leading hyphen. */ - if (MDOC_Cm == n->tok) { - PAIR_CLASS_INIT(&tag, "flag"); - print_otag(h, TAG_SPAN, 1, &tag); + if (MDOC_Cm == n->tok) return(1); - } - - /* A zero-length child shouldn't get a dash. */ - - if (n->child) { - assert(MDOC_TEXT == n->child->type); - assert(n->child->string); - if ('\0' == *n->child->string) - return(0); - } - - PAIR_CLASS_INIT(&tag, "flag"); - print_otag(h, TAG_SPAN, 1, &tag); print_text(h, "\\-"); |