From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o8PFpUt7028232 for ; Sat, 25 Sep 2010 11:51:30 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id o8PFpUOc001672; Sat, 25 Sep 2010 11:51:30 -0400 (EDT) Date: Sat, 25 Sep 2010 11:51:30 -0400 (EDT) Message-Id: <201009251551.o8PFpUOc001672@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Add `Rs' vertical-space in -T[x]html "SEE ALSO" section. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Add `Rs' vertical-space in -T[x]html "SEE ALSO" section. Remove corresponding TODO entry. Also have the "." after an `Rs' block trigger inter-sentence spacing. Modified Files: -------------- mdocml: TODO mdoc_html.c mdoc_term.c Revision Data ------------- Index: TODO =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/TODO,v retrieving revision 1.49 retrieving revision 1.50 diff -LTODO -LTODO -u -p -r1.49 -r1.50 --- TODO +++ TODO @@ -157,8 +157,6 @@ see "The route utility provides the following simple commands:" in OpenBSD route(8). -- In -T[x]html, Rs/Re need a div. - ************************************************************************ * performance issues ************************************************************************ Index: mdoc_html.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_html.c,v retrieving revision 1.104 retrieving revision 1.105 diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.104 -r1.105 --- mdoc_html.c +++ mdoc_html.c @@ -2108,17 +2108,14 @@ static int mdoc_rs_pre(MDOC_ARGS) { struct htmlpair tag; - struct roffsu su; if (MDOC_BLOCK != n->type) return(1); if (n->prev && SEC_SEE_ALSO == n->sec) { - SCALE_VS_INIT(&su, 1); - bufcat_su(h, "margin-top", &su); - PAIR_STYLE_INIT(&tag, h); - print_otag(h, TAG_DIV, 1, &tag); - } + print_otag(h, TAG_BR, 0, NULL); + print_otag(h, TAG_BR, 0, NULL); + } PAIR_CLASS_INIT(&tag, "ref"); print_otag(h, TAG_SPAN, 1, &tag); Index: mdoc_term.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v retrieving revision 1.185 retrieving revision 1.186 diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.185 -r1.186 --- mdoc_term.c +++ mdoc_term.c @@ -2131,7 +2131,11 @@ termp____post(DECL_ARGS) /* TODO: %U. */ p->flags |= TERMP_NOSPACE; - term_word(p, n->next ? "," : "."); + if (NULL == n->next) { + term_word(p, "."); + p->flags |= TERMP_SENTENCE; + } else + term_word(p, ","); } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv