diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-27 08:20:15 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-27 08:20:15 +0000 |
commit | ff1018946028fdff5987992f5ccc7e26a7ba7d55 (patch) | |
tree | 6c8f4b804f725d10e8ef48f0c5b3d900f4073785 /term.c | |
parent | 02d0e8c68c70b476d56141862eb8b20addbc233f (diff) | |
download | mandoc-ff1018946028fdff5987992f5ccc7e26a7ba7d55.tar.gz mandoc-ff1018946028fdff5987992f5ccc7e26a7ba7d55.tar.zst mandoc-ff1018946028fdff5987992f5ccc7e26a7ba7d55.zip |
More character-encoding.
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.25 2009/02/26 16:08:11 kristaps Exp $ */ +/* $Id: term.c,v 1.26 2009/02/27 08:20:15 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -25,7 +25,7 @@ #include "term.h" -#define INDENT 4 +#define INDENT 6 /* * Performs actions on nodes of the abstract syntax tree. Both pre- and @@ -279,7 +279,6 @@ arg_width(const struct mdoc_arg *arg) { size_t len, i, v; - /* TODO */ assert(*arg->value); if (0 == strcmp(*arg->value, "indent")) return(INDENT); @@ -1330,7 +1329,7 @@ termp_bq_pre(DECL_ARGS) if (MDOC_BODY != node->type) return(1); - word(p, "["); + word(p, "\\["); p->flags |= TERMP_NOSPACE; return(1); } @@ -1354,7 +1353,7 @@ termp_pq_pre(DECL_ARGS) if (MDOC_BODY != node->type) return(1); - word(p, "("); + word(p, "\\&("); p->flags |= TERMP_NOSPACE; return(1); } |