From 84e7a1da762680fa2919e438e354384ab7e18fc4 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 26 Jul 2010 13:45:49 +0000 Subject: Note that `Dd' can be empty. This found following a thread on discuss@ started by Sascha Wildner, 07/25/2010 06:30 AM. --- mdoc_action.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mdoc_action.c') diff --git a/mdoc_action.c b/mdoc_action.c index a4eb532c..928615ab 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_action.c,v 1.76 2010/07/13 23:53:20 schwarze Exp $ */ +/* $Id: mdoc_action.c,v 1.77 2010/07/26 13:45:49 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -904,6 +904,11 @@ post_dd(POST_ARGS) { char buf[DATESIZ]; + if (NULL == n->child) { + m->meta.date = time(NULL); + return(post_prol(m, n)); + } + if ( ! concat(m, buf, n->child, DATESIZ)) return(0); -- cgit v1.2.3-56-ge451