aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2014-09-27 09:13:39 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2014-09-27 09:13:39 +0000
commit827b4587075bca8e968c6a815c176ce01fbb45ae (patch)
tree0f6c0d98bf123dd1318eb2c913592fa3473f8482
parent6f603eaa29c0c620155a4676d14e514aae64f7fc (diff)
downloadmandoc-827b4587075bca8e968c6a815c176ce01fbb45ae.tar.gz
mandoc-827b4587075bca8e968c6a815c176ce01fbb45ae.tar.zst
mandoc-827b4587075bca8e968c6a815c176ce01fbb45ae.zip
Continue in HTML5-ing by kicking out some hard-coded alignments.
-rw-r--r--html.c8
-rw-r--r--man_html.c8
-rw-r--r--mdoc_html.c8
-rw-r--r--style.css6
4 files changed, 15 insertions, 15 deletions
diff --git a/html.c b/html.c
index e9e38555..b7facda4 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.167 2014/09/27 09:05:57 kristaps Exp $ */
+/* $Id: html.c,v 1.168 2014/09/27 09:13:39 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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) {
diff --git a/man_html.c b/man_html.c
index 8142ad85..dd9f13d6 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.99 2014/09/27 09:05:57 kristaps Exp $ */
+/* $Id: man_html.c,v 1.100 2014/09/27 09:13:39 kristaps Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);
diff --git a/mdoc_html.c b/mdoc_html.c
index c251041a..942fc83d 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.202 2014/09/27 09:05:57 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.203 2014/09/27 09:13:39 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);
diff --git a/style.css b/style.css
index d3d69147..5779e98a 100644
--- a/style.css
+++ b/style.css
@@ -1,4 +1,4 @@
-/* $Id: style.css,v 1.27 2014/08/14 00:31:43 schwarze Exp $ */
+/* $Id: style.css,v 1.28 2014/09/27 09:13:39 kristaps Exp $ */
/*
* This is an example style-sheet provided for mandoc(1) and the -Thtml
@@ -25,11 +25,11 @@ table.synopsis { } /* SYNOPSIS section table. */
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. */