From aa8151b1157e8486bce7cb08deeb4c78df1d9669 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 8 May 2017 15:34:54 +0000 Subject: Basic implementation of the roff(7) .ti (temporary indent) request. Needed by about four dozen ports (thanks to naddy@ for the research). --- term_ps.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'term_ps.c') diff --git a/term_ps.c b/term_ps.c index 696ff224..55d476e2 100644 --- a/term_ps.c +++ b/term_ps.c @@ -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 - * Copyright (c) 2014, 2015, 2016 Ingo Schwarze + * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze * * 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 -- cgit v1.2.3-56-ge451