From 8f5752d2fe1a20c227cf2afa8c9253a374b6d0b2 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 | 15 +++++++++++---- man_term.c | 14 +------------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/man.7 b/man.7 index 59060167..0130540e 100644 --- a/man.7 +++ b/man.7 @@ -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 6932c3fb..939bc049 100644 --- a/man_term.c +++ b/man_term.c @@ -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