summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-12 08:21:05 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-12 08:21:05 +0000
commit627a4caec7519aa0479398c3e48bdd78999d2fc8 (patch)
tree09daefac911456b7ccab04fae0d27464db17e1b2 /man_term.c
parent8f5752d2fe1a20c227cf2afa8c9253a374b6d0b2 (diff)
downloadmandoc-627a4caec7519aa0479398c3e48bdd78999d2fc8.tar.gz
Fixed \c support for all input and output modes (documented in mandoc_char.7).
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c13
1 files changed, 2 insertions, 11 deletions
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! */