version 1.65, 2016/08/28 16:13:51 |
version 1.66, 2017/03/03 15:04:51 |
|
|
/* $OpenBSD$ */ |
/* $OpenBSD$ */ |
/* |
/* |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
|
|
if (v == NULL) |
if (v == NULL) |
v = &v_local; |
v = &v_local; |
fl = tok == TOKEN_NONE ? ARGSFL_NONE : mdocargs[tok].flags; |
fl = tok == TOKEN_NONE ? ARGSFL_NONE : mdocargs[tok].flags; |
if (tok != MDOC_It) |
|
return args(mdoc, line, pos, buf, fl, v); |
|
|
|
/* |
/* |
* We know that we're in an `It', so it's reasonable to expect |
* We know that we're in an `It', so it's reasonable to expect |
|
|
* safe fall-back into the default behaviour. |
* safe fall-back into the default behaviour. |
*/ |
*/ |
|
|
for (n = mdoc->last; n; n = n->parent) |
if (tok == MDOC_It) { |
if (MDOC_Bl == n->tok) |
for (n = mdoc->last; n != NULL; n = n->parent) { |
if (LIST_column == n->norm->Bl.type) { |
if (n->tok != MDOC_Bl) |
|
continue; |
|
if (n->norm->Bl.type == LIST_column) |
fl = ARGSFL_TABSEP; |
fl = ARGSFL_TABSEP; |
break; |
break; |
} |
} |
|
} |
|
|
return args(mdoc, line, pos, buf, fl, v); |
return args(mdoc, line, pos, buf, fl, v); |
} |
} |