From 0e3a34d005ada7fe44f2109d7f478eaa1cdebbfe Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 12 Nov 2009 08:00:21 +0000 Subject: Deprecated ".i " support (nobody uses it -- it can be re-added, but adds a bit of complexity that I'd rather avoid). --- man.7 | 17 ++++++++++++----- man_term.c | 16 ++-------------- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/man.7 b/man.7 index 5fb7d94d..5a2bc440 100644 --- a/man.7 +++ b/man.7 @@ -1,4 +1,4 @@ -.\" $Id: man.7,v 1.50 2009/11/12 05:50:12 kristaps Exp $ +.\" $Id: man.7,v 1.51 2009/11/12 08:00:21 kristaps Exp $ .\" .\" Copyright (c) 2009 Kristaps Dzonsons .\" @@ -925,8 +925,8 @@ End literal mode begun by . . .Ss \&i -Italicise arguments. If no arguments are specified, all subsequent text -is italicised. +Italicise arguments. Synonym for +.Sx \&I . .Pp See also .Sx \&B , @@ -982,14 +982,21 @@ See also This section documents compatibility with other roff implementations, at this time limited to .Xr groff 1 . -.Bl -hyphen +.Pp +.Bl -dash -compact +.It +The +.Xr groff 1 +.Sx \&i +macro will italicise all subsequent text if a line argument is not +provided. This behaviour is not implemented. .It In quoted literals, groff allowed pair-wise double-quotes to produce a standalone double-quote in formatted output. This idiosyncratic behaviour is no longer applicable. .It The -.Sq sp +.Sx \&sp macro does not accept negative numbers. .It Blocks of whitespace are stripped from both macro and free-form text diff --git a/man_term.c b/man_term.c index 07b17029..704511b4 100644 --- a/man_term.c +++ b/man_term.c @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.52 2009/11/12 05:50:12 kristaps Exp $ */ +/* $Id: man_term.c,v 1.53 2009/11/12 08:00:21 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -104,7 +104,6 @@ static void post_RS(DECL_ARGS); static void post_SH(DECL_ARGS); static void post_SS(DECL_ARGS); static void post_TP(DECL_ARGS); -static void post_i(DECL_ARGS); static const struct termact termacts[MAN_MAX] = { { pre_br, NULL }, /* br */ @@ -129,7 +128,7 @@ static const struct termact termacts[MAN_MAX] = { { pre_RI, NULL }, /* IR */ { pre_RI, NULL }, /* RI */ { NULL, NULL }, /* na */ - { pre_I, post_i }, /* i */ + { pre_I, NULL }, /* i */ { pre_sp, NULL }, /* sp */ { pre_nf, NULL }, /* nf */ { pre_fi, NULL }, /* fi */ @@ -243,17 +242,6 @@ pre_I(DECL_ARGS) } -/* ARGSUSED */ -static void -post_i(DECL_ARGS) -{ - - /* FIXME */ - /*if (n->nchild) - p->under--;*/ -} - - /* ARGSUSED */ static int pre_fi(DECL_ARGS) -- cgit v1.2.3