summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-19 14:57:38 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-19 14:57:38 +0000
commitc599b29874a76cbd98a6af0d536d744e679bb1f5 (patch)
tree2b4131d196075429d0256ae87e29735403934586 /mdoc.c
parentb41835362693d09c3eff29cb37f2217b9dca8cc3 (diff)
downloadmandoc-c599b29874a76cbd98a6af0d536d744e679bb1f5.tar.gz
Unify trickier node handling functions.
* man_elem_alloc() -> roff_elem_alloc() * man_block_alloc() -> roff_block_alloc() The functions mdoc_elem_alloc() and mdoc_block_alloc() remain for now because they need to do mdoc(7)-specific argument processing.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc.c b/mdoc.c
index 1ca0cffb..aed7218a 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -329,7 +329,7 @@ mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs)
* blank lines aren't allowed, but enough manuals assume this
* behaviour that we want to work around it.
*/
- mdoc_elem_alloc(mdoc, line, offs, MDOC_sp, NULL);
+ roff_elem_alloc(mdoc, line, offs, MDOC_sp);
mdoc->next = ROFF_NEXT_SIBLING;
mdoc_valid_post(mdoc);
return(1);