]> git.cameronkatri.com Git - mandoc.git/blobdiff - mdoc_man.c
warning about unknown .Lb arguments; inspired by mdoclint(1)
[mandoc.git] / mdoc_man.c
index f2ccdd0f8dfe277d3c163420b7bca64b34cbd45c..5e6283456e00960ae7da7c44997aa2f0548308c5 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_man.c,v 1.116 2017/05/30 16:31:29 schwarze Exp $ */
+/*     $Id: mdoc_man.c,v 1.118 2017/06/06 15:01:04 schwarze Exp $ */
 /*
  * Copyright (c) 2011-2017 Ingo Schwarze <schwarze@openbsd.org>
  *
@@ -126,8 +126,10 @@ static     void      print_node(DECL_ARGS);
 
 static const void_fp roff_manacts[ROFF_MAX] = {
        pre_br,
+       pre_onearg,
        pre_ft,
        pre_onearg,
+       pre_onearg,
        pre_sp,
        pre_ta,
        pre_onearg,
@@ -1581,6 +1583,9 @@ pre_onearg(DECL_ARGS)
        if (n->child != NULL)
                print_word(n->child->string);
        outflags |= MMAN_nl;
+       if (n->tok == ROFF_ce)
+               for (n = n->child->next; n != NULL; n = n->next)
+                       print_node(meta, n);
 }
 
 static int