diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-20 05:45:21 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-20 05:45:21 +0000 |
commit | b03a6bc57c1b143fae2024f8c4d50e7eb4092105 (patch) | |
tree | dcf52e5501f01a7a82478d4c3da21aa709d52091 /mdoc_html.c | |
parent | af2a03c0019957aeee8786d2055ba9a304d433d3 (diff) | |
download | mandoc-b03a6bc57c1b143fae2024f8c4d50e7eb4092105.tar.gz mandoc-b03a6bc57c1b143fae2024f8c4d50e7eb4092105.tar.zst mandoc-b03a6bc57c1b143fae2024f8c4d50e7eb4092105.zip |
More updates to mdoc.7.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 795c3664..69623baf 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.34 2009/10/19 11:02:24 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.35 2009/10/20 05:45:21 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -1274,6 +1274,8 @@ mdoc_d1_pre(MDOC_ARGS) if (MDOC_BLOCK != n->type) return(1); + /* FIXME: D1 shouldn't be literal. */ + SCALE_VS_INIT(&su, INDENT - 2); bufcat_su(h, "margin-left", &su); PAIR_CLASS_INIT(&tag[0], "lit"); @@ -1289,20 +1291,20 @@ mdoc_sx_pre(MDOC_ARGS) { struct htmlpair tag[2]; const struct mdoc_node *nn; - char lbuf[BUFSIZ]; + char buf[BUFSIZ]; /* FIXME: duplicates? */ - (void)strlcpy(lbuf, "#", BUFSIZ); + (void)strlcpy(buf, "#", BUFSIZ); for (nn = n->child; nn; nn = nn->next) { - (void)strlcat(lbuf, nn->string, BUFSIZ); + (void)strlcat(buf, nn->string, BUFSIZ); if (nn->next) - (void)strlcat(lbuf, "_", BUFSIZ); + (void)strlcat(buf, "_", BUFSIZ); } PAIR_CLASS_INIT(&tag[0], "link-sec"); tag[1].key = ATTR_HREF; - tag[1].val = lbuf; + tag[1].val = buf; print_otag(h, TAG_A, 2, tag); return(1); |