summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/tbl.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-10-15 21:33:48 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-10-15 21:33:48 +0000
commit56a239481b489459700a1c4c97b917ec0f01de16 (patch)
tree5969e34730c463b7bb85cad0e3a238328934df9f /usr.bin/mandoc/tbl.c
parenta0860bc09a735b13d5854525b2d78db8413c641d (diff)
Move tbl output from plain stdio to mandoc terminal output routines.
This fixes (1) all escape sequences and (2) some aspects of indentation. Table column widths are still way off, though. "move forward" deraadt@
Diffstat (limited to 'usr.bin/mandoc/tbl.c')
-rw-r--r--usr.bin/mandoc/tbl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/mandoc/tbl.c b/usr.bin/mandoc/tbl.c
index b0e5d6b951e..64e40fbb10a 100644
--- a/usr.bin/mandoc/tbl.c
+++ b/usr.bin/mandoc/tbl.c
@@ -1,4 +1,4 @@
-/* $Id: tbl.c,v 1.1 2010/10/15 19:20:03 schwarze Exp $ */
+/* $Id: tbl.c,v 1.2 2010/10/15 21:33:47 schwarze Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -23,6 +23,8 @@
#include <stdlib.h>
#include <string.h>
+#include "out.h"
+#include "term.h"
#include "tbl.h"
#include "tbl_extern.h"
@@ -104,11 +106,11 @@ tbl_close(struct tbl *tbl, const char *f, int ln)
int
-tbl_write(const struct tbl *tbl)
+tbl_write(struct termp *p, const struct tbl *tbl)
{
#if 1
- return(tbl_write_term(tbl));
+ return(tbl_write_term(p, tbl));
#else
return(tbl_write_tree(tbl));
#endif