From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Continue in HTML5-ing by kicking out some hard-coded alignments.
Date: Sat, 27 Sep 2014 05:13:40 -0400 (EDT) [thread overview]
Message-ID: <201409270913.s8R9DeGB016557@krisdoz.my.domain> (raw)
Log Message:
-----------
Continue in HTML5-ing by kicking out some hard-coded alignments.
Modified Files:
--------------
mdocml:
html.c
man_html.c
mdoc_html.c
style.css
Revision Data
-------------
Index: style.css
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/style.css,v
retrieving revision 1.27
retrieving revision 1.28
diff -Lstyle.css -Lstyle.css -u -p -r1.27 -r1.28
--- style.css
+++ style.css
@@ -25,11 +25,11 @@ table.synopsis { } /* SYNOPSIS section t
table.foot { font-size: smaller; margin-top: 1em; border-top: 1px dotted #dddddd; } /* Document footer. */
td.foot-date { width: 50%; } /* Document footer: date. */
-td.foot-os { width: 50%; text-align: right; } /* Document footer: OS/source. */
+td.foot-os { width: 50%; } /* Document footer: OS/source. */
table.head { font-size: smaller; margin-bottom: 1em; border-bottom: 1px dotted #dddddd; } /* Document header. */
td.head-ltitle { width: 10%; } /* Document header: left-title. */
td.head-vol { width: 80%; text-align: center; } /* Document header: volume. */
-td.head-rtitle { width: 10%; text-align: right; } /* Document header: right-title. */
+td.head-rtitle { width: 10%; } /* Document header: right-title. */
/* General font modes. */
Index: man_html.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_html.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -Lman_html.c -Lman_html.c -u -p -r1.99 -r1.100
--- man_html.c
+++ man_html.c
@@ -331,8 +331,7 @@ man_root_pre(MAN_ARGS)
print_stagq(h, tt);
PAIR_CLASS_INIT(&tag[0], "head-rtitle");
- PAIR_INIT(&tag[1], ATTR_ALIGN, "right");
- print_otag(h, TAG_TD, 2, tag);
+ print_otag(h, TAG_TD, 1, tag);
print_text(h, title);
print_tagq(h, t);
free(title);
@@ -360,8 +359,7 @@ man_root_post(MAN_ARGS)
print_stagq(h, tt);
PAIR_CLASS_INIT(&tag[0], "foot-os");
- PAIR_INIT(&tag[1], ATTR_ALIGN, "right");
- print_otag(h, TAG_TD, 2, tag);
+ print_otag(h, TAG_TD, 1, tag);
if (man->source)
print_text(h, man->source);
Index: html.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/html.c,v
retrieving revision 1.167
retrieving revision 1.168
diff -Lhtml.c -Lhtml.c -u -p -r1.167 -r1.168
--- html.c
+++ html.c
@@ -197,8 +197,12 @@ print_gen_head(struct html *h)
tag[0].val = "utf-8";
print_otag(h, TAG_META, 1, tag);
+ /*
+ * Print a default style-sheet.
+ */
t = print_otag(h, TAG_STYLE, 0, NULL);
- print_text(h, "table.head, table.foot { width: 100%; }\n");
+ print_text(h, "table.head, table.foot { width: 100%; }\n"
+ "td.head-rtitle, td.foot-os { text-align: right; }\n");
print_tagq(h, t);
if (h->style) {
Index: mdoc_html.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_html.c,v
retrieving revision 1.202
retrieving revision 1.203
diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.202 -r1.203
--- mdoc_html.c
+++ mdoc_html.c
@@ -503,8 +503,7 @@ mdoc_root_post(MDOC_ARGS)
print_stagq(h, tt);
PAIR_CLASS_INIT(&tag[0], "foot-os");
- PAIR_INIT(&tag[1], ATTR_ALIGN, "right");
- print_otag(h, TAG_TD, 2, tag);
+ print_otag(h, TAG_TD, 1, tag);
print_text(h, meta->os);
print_tagq(h, t);
}
@@ -551,8 +550,7 @@ mdoc_root_pre(MDOC_ARGS)
print_stagq(h, tt);
PAIR_CLASS_INIT(&tag[0], "head-rtitle");
- PAIR_INIT(&tag[1], ATTR_ALIGN, "right");
- print_otag(h, TAG_TD, 2, tag);
+ print_otag(h, TAG_TD, 1, tag);
print_text(h, title);
print_tagq(h, t);
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
reply other threads:[~2014-09-27 9:13 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=201409270913.s8R9DeGB016557@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).