summaryrefslogtreecommitdiffstats
path: root/term_ps.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-08 15:34:54 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-08 15:34:54 +0000
commit743d8976911a7ef031de0fe12ef9ba67c3e7e5d4 (patch)
tree932d68bc5071b433591243f7ea70c4f9f7af959a /term_ps.c
parent3d6c85a4e22160f04975c142bcdf4c4a12f39cbd (diff)
downloadmandoc-743d8976911a7ef031de0fe12ef9ba67c3e7e5d4.tar.gz
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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/term_ps.c b/term_ps.c
index 4f5fef61..26e117e0 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -1,7 +1,7 @@
/* $Id$ */
/*
* 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