summaryrefslogtreecommitdiffstats
path: root/mdoc_markdown.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-05 15:17:32 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-05 15:17:32 +0000
commit59ff183bfbf2ef15bb6bae96290e8347aef13fb0 (patch)
tree44bdd5ee7af707828e02619c5b92b76ff63f5a20 /mdoc_markdown.c
parent3f8e564abc73c1abd2c1286b5e767b2b101aae57 (diff)
downloadmandoc-59ff183bfbf2ef15bb6bae96290e8347aef13fb0.tar.gz
Move .sp to the roff modules. Enough infrastructure is in place
now that this actually saves code: -70 LOC.
Diffstat (limited to 'mdoc_markdown.c')
-rw-r--r--mdoc_markdown.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_markdown.c b/mdoc_markdown.c
index abb97836..e01eb2cd 100644
--- a/mdoc_markdown.c
+++ b/mdoc_markdown.c
@@ -222,7 +222,6 @@ static const struct md_act __md_acts[MDOC_MAX - MDOC_Dd] = {
{ md_cond_body, md_pre_En, md_post_En, NULL, NULL }, /* En */
{ NULL, NULL, NULL, NULL, NULL }, /* Dx */
{ NULL, NULL, md_post_pc, NULL, NULL }, /* %Q */
- { NULL, md_pre_Pp, NULL, NULL, NULL }, /* sp */
{ NULL, md_pre_Lk, md_post_pc, NULL, NULL }, /* %U */
{ NULL, NULL, NULL, NULL, NULL }, /* Ta */
};
@@ -323,6 +322,9 @@ md_node(struct roff_node *n)
case ROFF_br:
process_children = md_pre_br(n);
break;
+ case ROFF_sp:
+ process_children = md_pre_Pp(n);
+ break;
default:
process_children = 0;
break;