]> git.cameronkatri.com Git - mandoc.git/blobdiff - mdoc_man.c
Start fixing issues that beck@ helped find:
[mandoc.git] / mdoc_man.c
index b6362f464062b1fa93bfa1590129aa9ae388bbc1..0482fb7f4cb913dd267cf44ab416a08a13ca8ea0 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_man.c,v 1.65 2014/07/02 19:55:10 schwarze Exp $ */
+/*     $Id: mdoc_man.c,v 1.66 2014/07/04 16:12:08 schwarze Exp $ */
 /*
  * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
  *
@@ -1308,17 +1308,20 @@ pre_it(DECL_ARGS)
                        else
                                print_word("-");
                        font_pop();
-                       break;
+                       outflags |= MMAN_nl;
+                       return(0);
                case LIST_enum:
                        print_width(bln->norm->Bl.width, NULL, 0);
                        TPremain = 0;
                        outflags |= MMAN_nl;
                        print_count(&bln->norm->Bl.count);
-                       break;
+                       outflags |= MMAN_nl;
+                       return(0);
                case LIST_hang:
                        print_width(bln->norm->Bl.width, n->child, 6);
                        TPremain = 0;
-                       break;
+                       outflags |= MMAN_nl;
+                       return(1);
                case LIST_tag:
                        print_width(bln->norm->Bl.width, n->child, 0);
                        putchar('\n');
@@ -1327,7 +1330,6 @@ pre_it(DECL_ARGS)
                default:
                        return(1);
                }
-               outflags |= MMAN_nl;
        default:
                break;
        }