]> git.cameronkatri.com Git - mandoc.git/commitdiff
basic implementation of -Tman .Bl -tag
authorIngo Schwarze <schwarze@openbsd.org>
Tue, 10 Jul 2012 20:37:02 +0000 (20:37 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Tue, 10 Jul 2012 20:37:02 +0000 (20:37 +0000)
while here, do some minor outflags cleanup
OpenBSD rev. 1.30

mdoc_man.c

index af0e0cdc059d518840117ae1790ee7d14faa7f2e..71020ebee9aef9c9020eea0655779eea5cf628a0 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_man.c,v 1.31 2012/07/10 19:54:11 schwarze Exp $ */
+/*     $Id: mdoc_man.c,v 1.32 2012/07/10 20:37:02 schwarze Exp $ */
 /*
  * Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org>
  *
@@ -764,6 +764,7 @@ static void
 post_bl(DECL_ARGS)
 {
 
+       outflags |= MMAN_br;
        if (LIST_enum == n->norm->Bl.type)
                n->norm->Bl.count = 0;
 }
@@ -1052,16 +1053,15 @@ pre_it(DECL_ARGS)
                        print_width(bln->norm->Bl.width, NULL);
                        outflags |= MMAN_nl;
                        print_count(&bln->norm->Bl.count);
-                       outflags |= MMAN_nl;
                        break;
                case (LIST_hang):
                        print_width(bln->norm->Bl.width, n->child);
-                       outflags |= MMAN_nl;
                        break;
-               default:
-                       if (bln->norm->Bl.width)
-                               print_width(bln->norm->Bl.width, n->child);
+               case (LIST_tag):
+                       print_width(bln->norm->Bl.width, NULL);
                        break;
+               default:
+                       return(1);
                }
                outflags |= MMAN_nl;
        default: