From 56a239481b489459700a1c4c97b917ec0f01de16 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 15 Oct 2010 21:33:48 +0000 Subject: 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@ --- usr.bin/mandoc/tbl.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.bin/mandoc/tbl.c') 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 * @@ -23,6 +23,8 @@ #include #include +#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 -- cgit v1.2.3