dist: mdocml.tgz
-www: $(HTML) $(XML)
+www: all $(HTML) $(XML)
regress: mdocml
@for f in $(FAIL); do \
-/* $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>
*
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);
-/* $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>
*
HTML_ATTR_REL = 5,
HTML_ATTR_HREF = 6,
HTML_ATTR_WIDTH = 7,
+ HTML_ATTR_ALIGN = 8,
};
enum html_type {
-/* $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>
*
#include <stdlib.h>
#include <string.h>
-#include "private.h"
#include "ml.h"
#ifdef __linux__
-/* $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>
*
static const char * const attrnames[] = {
"class", "http-equiv", "content", "name",
"type", "rel", "href", "width",
+ "align",
};
static const char * const typenames[] = {
-/* $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>
*
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))