X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/012b0a63e80b5d6c24ffc3ddc292861aa4132cc6..42daeb33f995857a79a8630b58e3c8444aa9f9b9:/tbl_term.c diff --git a/tbl_term.c b/tbl_term.c index 455a158d..12767766 100644 --- a/tbl_term.c +++ b/tbl_term.c @@ -1,4 +1,4 @@ -/* $Id: tbl_term.c,v 1.37 2015/01/30 17:32:16 schwarze Exp $ */ +/* $Id: tbl_term.c,v 1.40 2015/03/06 15:48:53 schwarze Exp $ */ /* * Copyright (c) 2009, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2014, 2015 Ingo Schwarze @@ -82,8 +82,6 @@ term_tbl(struct termp *tp, const struct tbl_span *sp) */ if (tp->tbl.cols == NULL) { - term_flushln(tp); - tp->tbl.len = term_tbl_len; tp->tbl.slen = term_tbl_strlen; tp->tbl.arg = tp; @@ -414,9 +412,9 @@ tbl_number(struct termp *tp, const struct tbl_opts *opts, static void tbl_word(struct termp *tp, const struct tbl_dat *dp) { - const void *prev_font; + int prev_font; - prev_font = term_fontq(tp); + prev_font = tp->fonti; if (dp->layout->flags & TBL_CELL_BOLD) term_fontpush(tp, TERMFONT_BOLD); else if (dp->layout->flags & TBL_CELL_ITALIC)