]> git.cameronkatri.com Git - mandoc.git/commitdiff
Fixed a goddamn subtle error causing MDOC_LITERAL to remain set after a
authorKristaps Dzonsons <kristaps@bsd.lv>
Wed, 1 Dec 2010 13:05:13 +0000 (13:05 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Wed, 1 Dec 2010 13:05:13 +0000 (13:05 +0000)
call to `Dl' or `Bd -literal' or unfilled.

mdoc_validate.c

index 53c4ab5a62a5e6aaeb9029b056e8e42368a37f20..c5dd3934f0db6344b169bf4714effa14ceb3406f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_validate.c,v 1.133 2010/11/30 14:27:37 kristaps Exp $ */
+/*     $Id: mdoc_validate.c,v 1.134 2010/12/01 13:05:13 kristaps Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -1158,7 +1158,7 @@ post_literal(POST_ARGS)
         */
 
        if (MDOC_BODY == mdoc->last->type)
-               mdoc->last->flags &= ~MDOC_LITERAL;
+               mdoc->flags &= ~MDOC_LITERAL;
 
        return(1);
 }