/* $Id: eqn_html.c,v 1.10 2014/10/12 19:31:41 schwarze Exp $ */
/*
* Copyright (c) 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mandoc.h"
#include "out.h"
#include "html.h"
static void
{
return;
/*
* Special handling for a matrix, which is presented to us in
* column order, but must be printed in row-order.
*/
goto out;
goto out;
}
goto out;
/* Estimate the number of rows, first. */
goto out;
/* Print row-by-row. */
for (i = 0; i < rows; i++) {
for (j = 0; j < i; j++) {
break;
}
/*
* If we have no data for this
* particular cell, then print a
* placeholder and continue--don't puke.
*/
print_tagq(p, cell);
}
print_tagq(p, row);
}
goto out;
}
case (EQNPOS_TO):
break;
case (EQNPOS_SUP):
break;
case (EQNPOS_FROM):
break;
case (EQNPOS_SUB):
break;
case (EQNPOS_OVER):
break;
case (EQNPOS_FROMTO):
break;
case (EQNPOS_SUBSUP):
break;
case (EQNPOS_SQRT):
break;
default:
break;
}
}
}
}
else
}
out:
print_tagq(p, t);
}
print_tagq(p, t);
}
print_tagq(p, post);
}
void
{
struct tag *t;
p->flags |= HTML_NONOSPACE;
p->flags &= ~HTML_NONOSPACE;
print_tagq(p, t);
}