summaryrefslogtreecommitdiffstatshomepage
path: root/action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-19 17:02:58 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-19 17:02:58 +0000
commit4d0e00fc396f69ea4575cca04855817cbf289670 (patch)
treee722af6824f2dd2609f6df0ee9b5b3da4f0ad6be /action.c
parentefab70236b25559a1c5375d7071cbd2c4f4a5bd1 (diff)
downloadmandoc-4d0e00fc396f69ea4575cca04855817cbf289670.tar.gz
mandoc-4d0e00fc396f69ea4575cca04855817cbf289670.tar.zst
mandoc-4d0e00fc396f69ea4575cca04855817cbf289670.zip
Removed unnecessary test cases (most were for visual).
Finally fixed scope-rewinding (MDOC_VALID).
Diffstat (limited to 'action.c')
-rw-r--r--action.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/action.c b/action.c
index 554fad58..f9bc34d4 100644
--- a/action.c
+++ b/action.c
@@ -1,4 +1,4 @@
-/* $Id: action.c,v 1.11 2009/01/17 16:47:02 kristaps Exp $ */
+/* $Id: action.c,v 1.12 2009/01/19 17:02:58 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -269,7 +269,7 @@ post_dd(struct mdoc *mdoc)
assert(MDOC_TEXT == n->type);
p = n->data.text.string;
- if (xstrcmp(p, "$Mdocdate: January 17 2009 $")) {
+ if (xstrcmp(p, "$Mdocdate: January 19 2009 $")) {
mdoc->meta.date = time(NULL);
continue;
} else if (xstrcmp(p, "$")) {
@@ -298,6 +298,10 @@ int
mdoc_action_post(struct mdoc *mdoc)
{
+ if (MDOC_ACTED & mdoc->last->flags)
+ return(1);
+ mdoc->last->flags |= MDOC_ACTED;
+
if (MDOC_TEXT == mdoc->last->type)
return(1);
if (MDOC_ROOT == mdoc->last->type)