summaryrefslogtreecommitdiffstats
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
commite0d9872bbdd4110b297086232c64be230e972e68 (patch)
treee2fc1100aba911ef87e564ea035b5b8204ce32b7
parent14b766df0d1ee7f25fafdd5aafafb9f03d3f0488 (diff)
downloadmandoc-e0d9872bbdd4110b297086232c64be230e972e68.tar.gz
*** empty log message ***
-rw-r--r--Makefile2
-rw-r--r--html.c5
-rw-r--r--html.h1
-rw-r--r--ml.c1
-rw-r--r--tags.c1
-rw-r--r--xml.c2
6 files changed, 9 insertions, 3 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 c60a45e0..b77a8152 100644
--- a/html.c
+++ b/html.c
@@ -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 91762151..66ed0cb4 100644
--- a/html.h
+++ b/html.h
@@ -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 46f10ce9..f908fbe8 100644
--- a/ml.c
+++ b/ml.c
@@ -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 26e7e296..6ff3ba6c 100644
--- a/tags.c
+++ b/tags.c
@@ -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 64ce7ce4..a6b05e90 100644
--- a/xml.c
+++ b/xml.c
@@ -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))