From b2d098b772c4b976ea90943ea909bd2e5f294f56 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 9 Jan 2011 16:09:42 +0000 Subject: Only .Bd -literal has 8-character tabs, while .Bd -unfilled has 5-character tabs just like normal text; from kristaps@. --- usr.bin/mandoc/mdoc_term.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c index b97de215fc6..0ab17e294c2 100644 --- a/usr.bin/mandoc/mdoc_term.c +++ b/usr.bin/mandoc/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.122 2011/01/04 22:28:17 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.123 2011/01/09 16:09:41 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -1595,7 +1595,9 @@ termp_bd_pre(DECL_ARGS) return(1); tabwidth = p->tabwidth; - p->tabwidth = term_len(p, 8); + if (DISP_literal == n->norm->Bd.type) + p->tabwidth = term_len(p, 8); + rm = p->rmargin; rmax = p->maxrmargin; p->rmargin = p->maxrmargin = TERM_MAXMARGIN; -- cgit v1.2.3