From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Add `Rs' vertical-space in -T[x]html "SEE ALSO" section.
Date: Sat, 25 Sep 2010 11:51:30 -0400 (EDT) [thread overview]
Message-ID: <201009251551.o8PFpUOc001672@krisdoz.my.domain> (raw)
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
reply other threads:[~2010-09-25 15:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201009251551.o8PFpUOc001672@krisdoz.my.domain \
--to=kristaps@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).