summaryrefslogtreecommitdiffstatshomepage
path: root/man_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-24 20:10:53 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-24 20:10:53 +0000
commitbdcaee420fe7a05a2069049d14aa31dce93be009 (patch)
tree497c84386ad0639f035b07c56b0fcd0e16c719fb /man_term.c
parent0cbe61642c46c73e81d998bc81f574b30674e3cb (diff)
downloadmandoc-bdcaee420fe7a05a2069049d14aa31dce93be009.tar.gz
mandoc-bdcaee420fe7a05a2069049d14aa31dce93be009.tar.zst
mandoc-bdcaee420fe7a05a2069049d14aa31dce93be009.zip
Using man_node_delete() instead of man_node_free()/man_node_freelist() and friends (much simpler).
Split blk_imp() into blk_exp() (explicit macros), blk_dotted() (roff macros), and the original. Added de, dei, am, ami, and ig roff macros (for now, these are discarded within the parse).
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index 2e7397e0..ee833bdc 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.58 2010/03/23 12:42:22 kristaps Exp $ */
+/* $Id: man_term.c,v 1.59 2010/03/24 20:10:53 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -142,6 +142,12 @@ static const struct termact termacts[MAN_MAX] = {
{ pre_sp, NULL, MAN_NOTEXT }, /* Sp */
{ pre_nf, NULL, 0 }, /* Vb */
{ pre_fi, NULL, 0 }, /* Ve */
+ { pre_ign, NULL, MAN_NOTEXT }, /* de */
+ { pre_ign, NULL, MAN_NOTEXT }, /* dei */
+ { pre_ign, NULL, MAN_NOTEXT }, /* am */
+ { pre_ign, NULL, MAN_NOTEXT }, /* ami */
+ { pre_ign, NULL, MAN_NOTEXT }, /* ig */
+ { NULL, NULL, 0 }, /* . */
};
@@ -785,6 +791,8 @@ post_RS(DECL_ARGS)
case (MAN_BLOCK):
mt->offset = mt->lmargin = INDENT;
break;
+ case (MAN_HEAD):
+ break;
default:
term_newln(p);
p->offset = INDENT;