diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-21 15:53:31 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-21 15:53:31 +0000 |
commit | c456a233e9f229d79af0cdfd34b969a6b798dcc7 (patch) | |
tree | 9b0832e9047f900a69477fbc60b264fb053adc52 | |
parent | 8c85c4db25dfdea101aa7ac7ec51d1bdd134aacd (diff) | |
download | mandoc-c456a233e9f229d79af0cdfd34b969a6b798dcc7.tar.gz mandoc-c456a233e9f229d79af0cdfd34b969a6b798dcc7.tar.zst mandoc-c456a233e9f229d79af0cdfd34b969a6b798dcc7.zip |
Added default print of `~' with empty `Pa' (not documented with OpenBSD, but still applicable).
-rw-r--r-- | mdoc_action.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mdoc_action.c b/mdoc_action.c index 99b392db..156bb1e3 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_action.c,v 1.30 2009/07/17 10:56:57 kristaps Exp $ */ +/* $Id: mdoc_action.c,v 1.31 2009/07/21 15:53:31 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -42,13 +42,13 @@ static int post_dd(POST_ARGS); static int post_display(POST_ARGS); static int post_dt(POST_ARGS); static int post_lb(POST_ARGS); -static int post_lk(POST_ARGS); static int post_nm(POST_ARGS); static int post_os(POST_ARGS); static int post_prol(POST_ARGS); static int post_sh(POST_ARGS); static int post_st(POST_ARGS); static int post_std(POST_ARGS); +static int post_tilde(POST_ARGS); static int pre_bd(PRE_ARGS); static int pre_dl(PRE_ARGS); @@ -89,7 +89,7 @@ const struct actions mdoc_actions[MDOC_MAX] = { { NULL, post_nm }, /* Nm */ { NULL, NULL }, /* Op */ { NULL, NULL }, /* Ot */ - { NULL, NULL }, /* Pa */ + { NULL, post_tilde }, /* Pa */ { NULL, post_std }, /* Rv */ { NULL, post_st }, /* St */ { NULL, NULL }, /* Va */ @@ -162,7 +162,7 @@ const struct actions mdoc_actions[MDOC_MAX] = { { NULL, NULL }, /* Ud */ { NULL, post_lb }, /* Lb */ { NULL, NULL }, /* Lp */ - { NULL, post_lk }, /* Lk */ + { NULL, post_tilde }, /* Lk */ { NULL, NULL }, /* Mt */ { NULL, NULL }, /* Brq */ { NULL, NULL }, /* Bro */ @@ -735,7 +735,7 @@ post_bl(POST_ARGS) static int -post_lk(POST_ARGS) +post_tilde(POST_ARGS) { struct mdoc_node *n; @@ -745,7 +745,7 @@ post_lk(POST_ARGS) n = m->last; m->next = MDOC_NEXT_CHILD; - /* XXX: this isn't documented anywhere! */ + /* XXX: not documented for `Lk'. */ if ( ! mdoc_word_alloc(m, m->last->line, m->last->pos, "~")) return(0); |