Print this page
9718 update mandoc to 1.14.4
@@ -1,6 +1,6 @@
-/* $Id: mdoc_state.c,v 1.8 2017/05/05 15:17:32 schwarze Exp $ */
+/* $Id: mdoc_state.c,v 1.9 2017/11/29 20:05:33 schwarze Exp $ */
/*
* Copyright (c) 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -206,24 +206,29 @@
}
static void
state_bl(STATE_ARGS)
{
+ struct mdoc_arg *args;
+ size_t i;
if (n->type != ROFFT_HEAD || n->parent->args == NULL)
return;
- switch(n->parent->args->argv[0].arg) {
+ args = n->parent->args;
+ for (i = 0; i < args->argc; i++) {
+ switch(args->argv[i].arg) {
case MDOC_Diag:
n->norm->Bl.type = LIST_diag;
- break;
+ return;
case MDOC_Column:
n->norm->Bl.type = LIST_column;
- break;
+ return;
default:
break;
}
+ }
}
static void
state_dl(STATE_ARGS)
{