aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-10 00:53:40 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-10 00:53:40 +0000
commit643d4d3e12bab073d256761997a695832f403658 (patch)
tree14d63140f5fd315e00804757ae7eafca5b527a20
parent1085b597d4bfab63f287b0a8b596e441cfc51014 (diff)
downloadmandoc-643d4d3e12bab073d256761997a695832f403658.tar.gz
mandoc-643d4d3e12bab073d256761997a695832f403658.tar.zst
mandoc-643d4d3e12bab073d256761997a695832f403658.zip
*** empty log message ***
-rw-r--r--Makefile2
-rw-r--r--html.c7
-rw-r--r--html.h3
-rw-r--r--ml.c3
-rw-r--r--tags.c3
-rw-r--r--xml.c4
6 files changed, 14 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index c11a4f03..41325793 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@ lint: llib-lmdocml.ln
dist: mdocml.tgz
-www: $(HTML) $(XML)
+www: all $(HTML) $(XML)
regress: mdocml
@for f in $(FAIL); do \
diff --git a/html.c b/html.c
index b2b88a41..caf6f473 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.19 2008/12/10 00:52:46 kristaps Exp $ */
+/* $Id: html.c,v 1.20 2008/12/10 00:58:15 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -485,7 +485,10 @@ html_begin(struct md_mbuf *mbuf, const struct md_args *args,
if ( ! html_tputln(mbuf, ML_CLOSE, i, HTML_TAG_TD))
return(0);
- if ( ! html_tputln(mbuf, ML_OPEN, i, HTML_TAG_TD))
+ attr[0].attr = HTML_ATTR_ALIGN;
+ attr[0].val = "right";
+
+ if ( ! html_aputln(mbuf, ML_OPEN, i, HTML_TAG_TD, 1, attr))
return(0);
if ( ! ml_putstring(mbuf, ts, NULL))
return(0);
diff --git a/html.h b/html.h
index f437cced..7fe1292e 100644
--- a/html.h
+++ b/html.h
@@ -1,4 +1,4 @@
-/* $Id: html.h,v 1.1 2008/12/10 00:52:46 kristaps Exp $ */
+/* $Id: html.h,v 1.2 2008/12/10 00:58:15 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -51,6 +51,7 @@ enum html_attr {
HTML_ATTR_REL = 5,
HTML_ATTR_HREF = 6,
HTML_ATTR_WIDTH = 7,
+ HTML_ATTR_ALIGN = 8,
};
enum html_type {
diff --git a/ml.c b/ml.c
index d3754acb..efee8904 100644
--- a/ml.c
+++ b/ml.c
@@ -1,4 +1,4 @@
-/* $Id: ml.c,v 1.8 2008/12/09 17:09:12 kristaps Exp $ */
+/* $Id: ml.c,v 1.9 2008/12/10 00:58:15 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -20,7 +20,6 @@
#include <stdlib.h>
#include <string.h>
-#include "private.h"
#include "ml.h"
#ifdef __linux__
diff --git a/tags.c b/tags.c
index 46831e26..35c0655e 100644
--- a/tags.c
+++ b/tags.c
@@ -1,4 +1,4 @@
-/* $Id: tags.c,v 1.1 2008/12/10 00:52:46 kristaps Exp $ */
+/* $Id: tags.c,v 1.2 2008/12/10 00:58:15 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -37,6 +37,7 @@ static const char * const tagnames[] = {
static const char * const attrnames[] = {
"class", "http-equiv", "content", "name",
"type", "rel", "href", "width",
+ "align",
};
static const char * const typenames[] = {
diff --git a/xml.c b/xml.c
index 212778e5..673ca2b2 100644
--- a/xml.c
+++ b/xml.c
@@ -1,4 +1,4 @@
-/* $Id: xml.c,v 1.21 2008/12/09 17:09:12 kristaps Exp $ */
+/* $Id: xml.c,v 1.22 2008/12/10 00:53:40 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -68,6 +68,8 @@ xml_printtagargs(struct md_mbuf *mbuf, const int *argc,
if ( ! ml_nputs(mbuf, " ", 1, &res))
return(-1);
+ /* FIXME: should puke on some, no? */
+
if ( ! ml_puts(mbuf, tokargnames[c], &res))
return(-1);
if ( ! ml_nputs(mbuf, "=\"", 2, &res))