diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-08 15:34:54 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-08 15:34:54 +0000 |
commit | aa8151b1157e8486bce7cb08deeb4c78df1d9669 (patch) | |
tree | 00a31b096cb9f968844ba4e0abd4f6a07037f6c9 /term_ps.c | |
parent | 396a6a4a456ccbca1eb8ea6ef724a14e28f9fc54 (diff) | |
download | mandoc-aa8151b1157e8486bce7cb08deeb4c78df1d9669.tar.gz mandoc-aa8151b1157e8486bce7cb08deeb4c78df1d9669.tar.zst mandoc-aa8151b1157e8486bce7cb08deeb4c78df1d9669.zip |
Basic implementation of the roff(7) .ti (temporary indent) request.
Needed by about four dozen ports (thanks to naddy@ for the research).
Diffstat (limited to 'term_ps.c')
-rw-r--r-- | term_ps.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,7 +1,7 @@ -/* $Id: term_ps.c,v 1.83 2017/02/17 14:31:52 schwarze Exp $ */ +/* $Id: term_ps.c,v 1.84 2017/05/08 15:34:54 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -1219,6 +1219,9 @@ ps_endline(struct termp *p) } ps_closepage(p); + + p->offset -= p->ti; + p->ti = 0; } static void |