From 627a4caec7519aa0479398c3e48bdd78999d2fc8 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 12 Nov 2009 08:21:05 +0000 Subject: Fixed \c support for all input and output modes (documented in mandoc_char.7). --- man_term.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'man_term.c') diff --git a/man_term.c b/man_term.c index 939bc049..03f5cfdf 100644 --- a/man_term.c +++ b/man_term.c @@ -783,7 +783,7 @@ post_RS(DECL_ARGS) static void print_man_node(DECL_ARGS) { - int c, sz; + int c; c = 1; @@ -793,17 +793,8 @@ print_man_node(DECL_ARGS) term_vspace(p); break; } - /* - * Note! This is hacky. Here, we recognise the `\c' - * escape embedded in so many -man pages. It's supposed - * to remove the subsequent space, so we mark NOSPACE if - * it's encountered in the string. - */ - sz = (int)strlen(n->string); + term_word(p, n->string); - if (sz >= 2 && n->string[sz - 1] == 'c' && - n->string[sz - 2] == '\\') - p->flags |= TERMP_NOSPACE; /* FIXME: this means that macro lines are munged! */ -- cgit