diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2010-05-24 21:34:16 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2010-05-24 21:34:16 +0000 |
commit | e02845a612e170851ce8a57d88d5ddf83b80b3d6 (patch) | |
tree | 8f3fb70042dbabcf1eccb3b2d0d84b6d1a317e93 /term.h | |
parent | e47604840546989588e20d7885d0fba3897f3c00 (diff) | |
download | mandoc-e02845a612e170851ce8a57d88d5ddf83b80b3d6.tar.gz mandoc-e02845a612e170851ce8a57d88d5ddf83b80b3d6.tar.zst mandoc-e02845a612e170851ce8a57d88d5ddf83b80b3d6.zip |
Handle literal tab characters both in literal context (.Bd -literal)
and outside. In literal context, tab stops are at each eigth column;
outside, they are at each fifth column.
from OpenBSD mdoc_term.c rev. 1.75;
"commit" kristaps@
Diffstat (limited to 'term.h')
-rw-r--r-- | term.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.55 2010/05/15 16:18:23 joerg Exp $ */ +/* $Id: term.h,v 1.56 2010/05/24 21:34:16 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -37,6 +37,7 @@ struct termp { size_t maxrmargin; /* Max right margin. */ size_t maxcols; /* Max size of buf. */ size_t offset; /* Margin offest. */ + size_t tabwidth; /* Distance of tab positions. */ size_t col; /* Bytes in buf. */ int overstep; /* See termp_flushln(). */ int flags; |