diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-25 17:02:47 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-25 17:02:47 +0000 |
commit | 5851ee4d2b64ce06c48c8cfb740d681250066ca5 (patch) | |
tree | ece2553e4a24af4c3e30aa8ca963745d75ad7784 /term.c | |
parent | 1961c1d89494c7fce047f0bc339a5feae46efc7d (diff) | |
download | mandoc-5851ee4d2b64ce06c48c8cfb740d681250066ca5.tar.gz mandoc-5851ee4d2b64ce06c48c8cfb740d681250066ca5.tar.zst mandoc-5851ee4d2b64ce06c48c8cfb740d681250066ca5.zip |
*** empty log message ***
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 26 |
1 files changed, 24 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.21 2009/02/25 15:12:26 kristaps Exp $ */ +/* $Id: term.c,v 1.22 2009/02/25 17:02:47 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -17,6 +17,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ #include <assert.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> @@ -148,6 +149,7 @@ DECL_PRE(termp_ox); DECL_PRE(termp_pa); DECL_PRE(termp_pp); DECL_PRE(termp_rv); +DECL_PRE(termp_sm); DECL_PRE(termp_st); DECL_PRE(termp_sx); DECL_PRE(termp_sy); @@ -248,7 +250,7 @@ const struct termact __termacts[MDOC_MAX] = { { NULL, NULL }, /* Sc */ { termp_sq_pre, termp_sq_post }, /* So */ { termp_sq_pre, termp_sq_post }, /* Sq */ - { NULL, NULL }, /* Sm */ + { termp_sm_pre, NULL }, /* Sm */ { termp_sx_pre, NULL }, /* Sx */ { termp_sy_pre, NULL }, /* Sy */ { NULL, NULL }, /* Tn */ @@ -1404,3 +1406,23 @@ termp_ms_pre(DECL_ARGS) return(1); } + + +/* ARGSUSED */ +static int +termp_sm_pre(DECL_ARGS) +{ + +#if notyet + assert(node->child); + if (0 == strcmp("off", node->child->data.text.string)) { + p->flags &= ~TERMP_NONOSPACE; + p->flags &= ~TERMP_NOSPACE; + } else { + p->flags |= TERMP_NONOSPACE; + p->flags |= TERMP_NOSPACE; + } +#endif + + return(0); +} |