]> git.cameronkatri.com Git - mandoc.git/blobdiff - mdoc_action.c
Cache all of `Bd's resolved arguments into mdoc_bd, which is stashed in
[mandoc.git] / mdoc_action.c
index f1c3b2363f570d7e4e10614f4f8aa27abab8bef9..e103eb980068d028f121a5f7033e2c99acbdbbf7 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_action.c,v 1.66 2010/06/12 10:09:19 kristaps Exp $ */
+/*     $Id: mdoc_action.c,v 1.67 2010/06/12 11:21:44 kristaps Exp $ */
 /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
  *
@@ -979,14 +979,12 @@ static int
 pre_bd(PRE_ARGS)
 {
 
-       if (MDOC_BLOCK == n->type)
-               return(pre_offset(m, n));
        if (MDOC_BODY != n->type)
                return(1);
 
-       if (DISP_literal == n->data.disp)
+       if (DISP_literal == n->data.Bd.type)
                m->flags |= MDOC_LITERAL;
-       if (DISP_unfilled == n->data.disp)
+       if (DISP_unfilled == n->data.Bd.type)
                m->flags |= MDOC_LITERAL;
 
        return(1);