diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-12 08:21:05 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-12 08:21:05 +0000 |
commit | 627a4caec7519aa0479398c3e48bdd78999d2fc8 (patch) | |
tree | 09daefac911456b7ccab04fae0d27464db17e1b2 /man_term.c | |
parent | 8f5752d2fe1a20c227cf2afa8c9253a374b6d0b2 (diff) | |
download | mandoc-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.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -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! */ |